Check Kibana health kibana
Overall health status and Kibana version
curl -s http://kibana:5601/api/status | jq '{status: .status.overall.level, version: .version.number}'
more kibana
all 15 commands →
List all index patterns
curl -s http://kibana:5601/api/saved_objects/_find?type=index-pattern | jq '.saved_objects[].attributes.title'
Dev Tools console query
GET logs-*/_search
{
"query": {"match": {"level": "error"}},
"size": 10
}
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}'