Not able to filter from timestamp

I am trying to filter last 10 or some x minutes of data based on values in timestamp
Here is my timestamp data : "timestamp": "2023-11-08 14:28:06",
and mapping info

 "timestamp": {
          "type": "date",
          "format": "yyyy-MM-dd HH:mm:ss"
        }

I am using this query to filter


  "query": {
    "range": {
      "timestamp": {
        "gte": "now-10m/m",
        "lte": "now/m",
        "format": "yyyy-MM-dd HH:mm:ss"
      }
    }
  }

what ever the timeframe I change it's always giving me the empty set.
any help would be apricated . Thank you.

1 Like

Hello @shivakrishnaadduri,

Welcome to the community!

When you say you're trying to filter, do you mean in Kibana Discover?

If so, how are you doing it? Are you adding a Query DSL filter?

Are there any error messages?

Are you sure you actually have data from 10 minutes ago? :slight_smile:

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