List all index patterns kibana
Show all registered index patterns
curl -s http://kibana:5601/api/saved_objects/_find?type=index-pattern | jq '.saved_objects[].attributes.title'
more kibana
all 15 commands →
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}'
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