Count query over the date range doesn't return proper results

Executing following query

curl -s -XGET http://blah:9200/kgacrm-2022.04.15/_count?pretty=true {"query": {"range" : {"timestamp": { "gte" : "now-15m", "lt" :  "now"}}}}
  "count" : 1725,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "skipped" : 0,
    "failed" : 0

It's returning me count for all the documents in the index. But when I look at the last 15 minutes through Kibana it's returning me 4 records. What's the issue with my query?

as per i see there is nothing wrong in your query

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