# Date range selection with custom date field strange behaviour

**URL:** <https://discuss.elastic.co/t/date-range-selection-with-custom-date-field-strange-behaviour/106423>\
**Category:** Kibana\
**Created:** [November 5, 2017, 1:07pm UTC](https://discuss.elastic.co/t/date-range-selection-with-custom-date-field-strange-behaviour/106423 "2017-11-05T13:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slavik57](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slavik57/32/22870_2.png) [@slavik57](https://discuss.elastic.co/u/slavik57)\
**Post date:** [November 5, 2017, 1:07pm UTC](https://discuss.elastic.co/t/date-range-selection-with-custom-date-field-strange-behaviour/106423/1 "2017-11-05T13:07:25Z")

</div>

I have a line visualization where the X-Axis is a Date Histogram with a custom date field with daily interval.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f409f3f304b12d96a272e2122dd22b0b48bbae75.png)  
Everything looks good...

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/5/5531e9e1d41c4bd786180146cbee7674e97f219c.png)

Now I select a date range on the graph itself:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe625038ae46ae8069a912418bfcd1de3aec30a3.png)

As a result it filters by the `@timestamp` on the top right of kibana:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/9/2955b9d17276a11fc8a31487d4a383f5047356ab.png)

What I expected it to do is to add a filter on the custom `sessionStartTime` field instead.

Is it a known issue? Am I missing something?

Thanks in advance...

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [November 6, 2017, 10:45pm UTC](https://discuss.elastic.co/t/date-range-selection-with-custom-date-field-strange-behaviour/106423/2 "2017-11-06T22:45:12Z")

</div>

@slavik57,

this seems to be a limitation of Kibana.

I looked but couldn't find an existing issue for it.  
I'd add a bug report here: [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

thx,

---

<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:** [December 4, 2017, 10:45pm UTC](https://discuss.elastic.co/t/date-range-selection-with-custom-date-field-strange-behaviour/106423/3 "2017-12-04T22:45:16Z")

</div>

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