Export dashboards
Export all Kibana dashboards with related objects to an NDJSON file
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
More kibana commands
-
curl -X POST 'http://kibana:5601/api/saved_objects/_import' -H 'kbn-xsrf: true' --form file=@dashboard.ndjsonImport dashboards that you exported before
-
status: 404 AND method: GETKibana Query Language: filter logs by field values
-
response_time > 500 AND @timestamp > now-1hFind slow responses (over 500) from the last hour
-
message: *OOMKilled*Find a word anywhere in a field value with wildcards
-
kubernetes.pod.name: web-* AND kubernetes.namespace: prodFilter by Kubernetes metadata fields such as pod name and namespace