List index patterns

Show all index patterns in Kibana

curl -s http://kibana:5601/api/saved_objects/_find?type=index-pattern | jq '.saved_objects[].attributes.title'

tool
kibana15 commands
tags
kibana

More kibana commands

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

    Run Elasticsearch queries right in Kibana Dev Tools

  • 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

all 15 kibana commands