Run a query in Dev Tools

Run Elasticsearch queries right in Kibana Dev Tools

GET logs-*/_search { "query": {"match": {"level": "error"}}, "size": 10 }

tool
kibana15 commands
tags
kibanaelasticsearchdebug

More kibana commands

  • curl -X DELETE http://kibana:5601/api/saved_objects/config/7.17.0 -H 'kbn-xsrf: true'

    Delete the config object for version 7.17.0, Kibana recreates it with defaults on reload

  • curl -s http://kibana:5601/api/spaces/space | jq '.[].id'

    Show the IDs of all Kibana 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}'

    Copy a dashboard to another Kibana Space

  • 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

    Export all Kibana dashboards with related objects to an NDJSON file

  • curl -X POST 'http://kibana:5601/api/saved_objects/_import' -H 'kbn-xsrf: true' --form file=@dashboard.ndjson

    Import dashboards that you exported before

all 15 kibana commands