# Kibana discover does not filter the time field correctly

**URL:** https://discuss.elastic.co/t/kibana-discover-does-not-filter-the-time-field-correctly/176580
**Category:** Kibana
**Created:** [April 12, 2019, 8:48am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-filter-the-time-field-correctly/176580 "2019-04-12T08:48:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [April 12, 2019, 8:48am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-filter-the-time-field-correctly/176580/1 "2019-04-12T08:48:19Z")

</div>

I have an index where the timestamp filed called start mapped as:  
"start": {  
"type": "date",  
"format": "yyyy.MM.dd HH:mm:ss Z"  
}

 ![discover](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8da5fa39a20a253cad812b2807372c63d678a886.jpeg)

When I click on the filter button next to the value the filter gives no result.

 ![discover_filter](https://us1.discourse-cdn.com/elastic/original/3X/3/8/381727d9de069747b02bdbe01834259703ee3596.jpeg)

Like this:

 ![discover_filter_result](https://us1.discourse-cdn.com/elastic/original/3X/0/9/09b18272dfca9a626b374cf2c1e8282ad944824d.jpeg)

The version of ES and Kibana is 6.1.2.  
Thanks in advance!

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [April 12, 2019, 12:57pm UTC](https://discuss.elastic.co/t/kibana-discover-does-not-filter-the-time-field-correctly/176580/2 "2019-04-12T12:57:24Z")

</div>

Can you look at the request that It's done in the last screenshot?  
I'd be curious to look at this part of the request:

```auto
  "query": {
    "bool": {
      "must": [
        {
          "match_all": {}
        },
        {
          "match_phrase": {
            "@timestamp": {
              "query": "2019-01-22T13:38:16.756Z"
            }
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": 1546293600000,
              "lte": 1577829599999,
              "format": "epoch_millis"
            }

```

Sounds like a problem with timezone conversions but it needs more investigation.

---

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [April 15, 2019, 7:45am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-filter-the-time-field-correctly/176580/3 "2019-04-15T07:45:01Z")

</div>

The strangest thing in it: If I filter out a certain timestamp (with the minus lens icon) I get also no result and I get a warning message at the top like this: "Courier Fetch: 3 of 347 shards failed."

BTW, I have executed the query you have mentioned - it gave no result at all.

---

<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: [May 13, 2019, 7:45am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-filter-the-time-field-correctly/176580/4 "2019-05-13T07:45:02Z")

</div>

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