Import dashboard kibana
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
all 15 commands →
KQL: filter by field value
status: 404 AND method: GET
KQL: range query
response_time > 500 AND @timestamp > now-1h
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"}}'