List Kibana spaces

Show the IDs of all Kibana Spaces

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

tool
kibana15 commands
tags
kibana

More kibana commands

  • 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

  • status: 404 AND method: GET

    Kibana Query Language: filter logs by field values

  • response_time > 500 AND @timestamp > now-1h

    Find slow responses (over 500) from the last hour

all 15 kibana commands