Search with query DSL elasticsearch

Find last 5 error log entries

curl -X GET 'http://es:9200/logs-*/_search?pretty' -H 'Content-Type: application/json' -d '{"query":{"match":{"level":"error"}},"size":5}'
more elasticsearch all 19 commands →