# DSL range query omits valid hits

**URL:** <https://discuss.elastic.co/t/dsl-range-query-omits-valid-hits/159782>\
**Category:** Elasticsearch\
**Created:** [December 6, 2018, 6:34pm UTC](https://discuss.elastic.co/t/dsl-range-query-omits-valid-hits/159782 "2018-12-06T18:34:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceekyay](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@ceekyay](https://discuss.elastic.co/u/ceekyay)\
**Post date:** [December 6, 2018, 6:34pm UTC](https://discuss.elastic.co/t/dsl-range-query-omits-valid-hits/159782/1 "2018-12-06T18:34:11Z")

</div>

I'm making this below query in Kibana (Dev Tools tab). The event I'm specifically looking for has the timestamp (unix epoch) of "1544061136965" (17:52:16 PST). The problem is, when I do a range query as below, with a time range greater than 1 minute, the event with timestamp, that I stated earlier in this post stops appearing in the results.  
**Example-1** : The event appears in the query result if I use this 1 minute time range:

```
"gte" : 1544061120000 (i.e. 17:52:00)
"lte": 1544061180000 (i.e. 17:53:00)

```

**Example-2** : However, if the range is longer than 1 minute, my desired event does not show up

```
"gte" : 1544061060000 (i.e. 17:51:00)
"lte": 1544061180000 (i.e. 17:53:00)

```

Could anyone tell me why this is happening?

```
{
  "query": {
   "range": {
     "logEvents.timestamp": {
       "gte": "1544061060000",
       "lte": "1544061180000"
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2019, 6:34pm UTC](https://discuss.elastic.co/t/dsl-range-query-omits-valid-hits/159782/2 "2019-01-03T18:34:13Z")

</div>

Closed on January 3, 2019, 6:34pm UTC

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