# Kiaban - Controls (Option list) on date field use timestamp

**URL:** <https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409>\
**Category:** Kibana\
**Created:** [November 29, 2021, 8:58am UTC](https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409 "2021-11-29T08:58:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalvoDM91](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@SalvoDM91](https://discuss.elastic.co/u/SalvoDM91)\
**Post date:** [November 29, 2021, 8:58am UTC](https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409/1 "2021-11-29T08:58:23Z")

</div>

Hi All,

I'm new on Kibana and I have a question about controls.  
In Discovery section I can see the list of my fields and one of them is important for me: dt\_reference\_date which is in this format YYYY-MM-DD HH:ii:ss.  
 ![json_discovery](https://us1.discourse-cdn.com/elastic/original/3X/3/3/3377b9e473268427d18c55d311502939977b8060.png)

If I try to insert a Control (option list) inside my dashboard, this tool use "match\_phrase" query with timestamp (something like 1637942958000).

 ![filter_reference_date](https://us1.discourse-cdn.com/elastic/original/3X/1/2/12d03fb148f5465833905e981f0f031e53d0a0bb.png)

Could you please help me to solve this issue?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 29, 2021, 5:01pm UTC](https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409/2 "2021-11-29T17:01:35Z")

</div>

What is the [elasticsearch mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html) of `dt_reference_date` field?

The control values come from doing a terms aggregation on the field. The aggregation is returning [date fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html) as epoch\_millis.

Is the generated filter not working? Can you describe the problem you are seeing?

---

<div class="post-metadata">

**Author:** ![SalvoDM91](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@SalvoDM91](https://discuss.elastic.co/u/SalvoDM91)\
**Post date:** [November 30, 2021, 7:55am UTC](https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409/3 "2021-11-30T07:55:11Z")

</div>

Hi Nathan, thanks a lot for your help.  
In index mapping details I can see:  
....  
....  
"dt\_reference\_date": {  
"type": "date",  
"format": "yyyy-MM-dd HH:mm:ss"  
},  
....  
....

So if I try to filter a dashbord with a control (option list) based on this field I can't find any result.

Thanks  
Salvo

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 30, 2021, 2:31pm UTC](https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409/4 "2021-11-30T14:31:27Z")

</div>

I would recommend opening an issue at [Sign in to GitHub · GitHub](https://github.com/elastic/kibana/issues/new?assignees=&labels=bug&template=Bug_report.md)

---

<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 28, 2021, 2:32pm UTC](https://discuss.elastic.co/t/kiaban-controls-option-list-on-date-field-use-timestamp/290409/5 "2021-12-28T14:32:00Z")

</div>

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