When i am running this query without filter then it is running fine but when i am putting the filter context with time range of 10 minute i am not getting any value in hits. I have to filter and get the events of last 10 minutes

{ 
    "sort": [{ "date": { "order": "desc" } }], 
    "from": 0, "size": 3, "track_total_hits": true,
     "query":
      {
           "bool":
            { 
                "must":
                 [
                     {
                          "bool":
                           {
                                "should":
                                 [
                                     {
                                         "match_phrase": {"actionType": "Diagnostic_Results"}
                                         }
                                         ]
                                          } 
                                          }, 
                                          {
                                               "match_phrase": { "saunaId": "p2b5889"} 
                                               }
                                               ],
                                                "filter": 
                                                  {
                                                       "range": 
{
 "@timestamp": { 
"gte": "now-10m",
 "lte": "now" 
}
}
                                                       }  
                                                       } 
                                                       } 
                                                       }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.