# Parsing query with @timestamp range

**URL:** <https://discuss.elastic.co/t/parsing-query-with-timestamp-range/253399>\
**Category:** Kibana\
**Created:** [October 27, 2020, 7:28am UTC](https://discuss.elastic.co/t/parsing-query-with-timestamp-range/253399 "2020-10-27T07:28:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TKul6](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@TKul6](https://discuss.elastic.co/u/TKul6)\
**Post date:** [October 27, 2020, 7:28am UTC](https://discuss.elastic.co/t/parsing-query-with-timestamp-range/253399/1 "2020-10-27T07:28:36Z")

</div>

Hi,

Assuming I have the following Lucene query defined in Kibana:  
`activity_id = '68e99866-d9e7-4e2e-abb9-b13702b13f72' AND @timestamp:[2020-10-20T08:09:13.503Z TO 2020-10-20T08:09:23.503Z]`

I've noticed that I have to pick a date (from the Kibana date control) although the query also contains a timestamp range.

I wanted to know how the query is sent to Elastic, does Kibana knows to reconstruct the query and combined the 2 ranges?

I'm afraid the Elastic will query irrelevant indices based on the range provided in the Kibana date control. (For example if I set the date in the control to 3 months ago, Does Elastic query all the indices from 3 months ago?)

Thanks

---

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [October 30, 2020, 11:54am UTC](https://discuss.elastic.co/t/parsing-query-with-timestamp-range/253399/2 "2020-10-30T11:54:42Z")

</div>

Hi @TKul6,  
Query string and date picker are combined into a single query.  
You can check how your final query looks using **inspect** in discover.

 ![Screenshot 2020-10-30 at 12.53.38](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a95a78dcea16648ff5de6e2707aa79f55ae65c3.png)

Hope this helps

---

<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:** [November 27, 2020, 11:54am UTC](https://discuss.elastic.co/t/parsing-query-with-timestamp-range/253399/3 "2020-11-27T11:54:45Z")

</div>

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