Import dashboard
Import a previously exported dashboard
curl -X POST 'http://kibana:5601/api/saved_objects/_import' -H 'kbn-xsrf: true' --form file=@dashboard.ndjson
More kibana commands
-
status: 404 AND method: GETKibana Query Language — filter logs by field values
-
response_time > 500 AND @timestamp > now-1hFilter events in the last hour with slow responses
-
message: *OOMKilled*Wildcard match in a field value
-
kubernetes.pod.name: web-* AND kubernetes.namespace: prodFilter by nested Kubernetes metadata fields
-
curl -X POST http://kibana:5601/api/saved_objects/index-pattern -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '{"attributes":{"title":"logs-*","timeFieldName":"@timestamp"}}'Register a new index pattern via Kibana REST API