Kibana 基础


原文链接: Kibana 基础

Kibana 5.x 加强安全

/scripts/import_dashboards -es http://120.92.36.21:9200 -user elastic -pass changeme

产看数据

curl '120.92.36.21:9200/.kibana/_search?q=*&pretty'

curl -XPOST '120.92.36.21:9200/.kibana/_search?pretty' -d '
{
  "query": { "match_all": {} }
}'

close the kibana index, restore it from snapshot, and reopen it

closeKibanaIndexCmd="curl -XPOST /.kibana/_close\""
restoreSnapshotCmd="curl -XPOST /_snapshot/elk_backup/$1/_restore\""
reopenKibanaIndexCmd="curl -XPOST /.kibana/_open\""
snapshotRepoCmd="curl -XPUT -s $authString \"$elk_base_url/_snapshot/elk_backup\" -d '{

  \"type\": \"fs\",
  \"settings\": {
      \"location\": \"/tmp/elkinstalldir/snapshots/\"
  }

}'"

echo "creating repo..."
eval $snapshotRepoCmd
echo "closing kibana index..."
echo "restoring snapshot..."

echo "reopening kibana index..."

#curl -XPOST -u esadmin:esadmin -s "http://120.92.36.21:9200/.kibana/_close"
#curl -XPOST -u esadmin:esadmin -s "http://120.92.36.21:9200/_snapshot/elk_backup/$1/_restore"
#curl -XPOST -u esadmin:esadmin -s "http://120.92.36.21:9200/.kibana/_open"

`