Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Here are the list of the sample Elastic Log quarries for reference.

Query to show elastic - 100 log documents


{
  "query": {
     "match_all": {}
   },
   "size": 100
}
Query to fetch Elastic Logs for last 30 days


{
  "query": {
    "bool": {
      "must": {
        "range": {
          "date": {
            "gte": "now-30d"
          }
        }
      }
    }
  }
}


Create query with input {0} to insert issue key


{
  "query": {
    "multi_match": {
      "query": "{0}",
      "fields": [
        "issueKey",
        "message"
      ],
      "operator": "or"
    }
  }
}


Query for search theme


{
  "query": {
    "multi_match": {
      "query": "{0}",
      "fields": [
        "issueKey",
        "message"
      ],
      "operator": "or"
    }
  }
}



  • No labels