Dev Tools console query kibana
Run Elasticsearch queries directly in Kibana Dev Tools
GET logs-*/_search
{
"query": {"match": {"level": "error"}},
"size": 10
}
more kibana
all 15 commands →
Flush Kibana cache
curl -X DELETE http://kibana:5601/api/saved_objects/config/7.17.0 -H 'kbn-xsrf: true'
Get space info
curl -s http://kibana:5601/api/spaces/space | jq '.[].id'
Copy objects between spaces
curl -X POST http://kibana:5601/api/spaces/_copy_saved_objects -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '{"spaces":["staging"],"objects":[{"type":"dashboard","id":"my-dash"}],"overwrite":true}'
Export dashboard
curl -s 'http://kibana:5601/api/saved_objects/_export' -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '{"type":"dashboard","includeReferencesDeep":true}' -o dashboard.ndjson
Import dashboard
curl -X POST 'http://kibana:5601/api/saved_objects/_import' -H 'kbn-xsrf: true' --form file=@dashboard.ndjson