KQL: range query kibana
Filter events in the last hour with slow responses
response_time > 500 AND @timestamp > now-1h
more kibana
all 15 commands →
KQL: wildcard search
message: *OOMKilled*
KQL: nested field filter
kubernetes.pod.name: web-* AND kubernetes.namespace: prod
Create index pattern via API
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"}}'
Export saved objects
curl -X POST http://kibana:5601/api/saved_objects/_export -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '{"type":["dashboard","visualization"],"includeReferencesDeep":true}' -o export.ndjson
Import saved objects
curl -X POST http://kibana:5601/api/saved_objects/_import?overwrite=true -H 'kbn-xsrf: true' -F file=@export.ndjson