KQL: range query

Filter events in the last hour with slow responses

response_time > 500 AND @timestamp > now-1h

tool
kibana15 commands
tags
kibanamonitoring

More kibana commands

  • message: *OOMKilled*

    Wildcard match in a field value

  • kubernetes.pod.name: web-* AND kubernetes.namespace: prod

    Filter 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

  • 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

    Export dashboards and visualizations to NDJSON

  • curl -X POST http://kibana:5601/api/saved_objects/_import?overwrite=true -H 'kbn-xsrf: true' -F file=@export.ndjson

    Import dashboards/visualizations from NDJSON

all 15 kibana commands