Advertisement
datadabllp

Elasticsearch query

Jul 18th, 2024
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GET /logs-*/_search
  2. {
  3.   "query": {
  4.     "bool": {
  5.       "must": [
  6.         { "match": { "service.name": "transaction-processor" } },
  7.         { "match": { "message": "database connection timeout" } },
  8.         { "range": { "@timestamp": { "gte": "now-6h" } } }
  9.       ]
  10.     }
  11.   }
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement