# Data aggregation in kibana

**URL:** <https://discuss.elastic.co/t/data-aggregation-in-kibana/235522>\
**Category:** Elasticsearch\
**Created:** [June 3, 2020, 10:52am UTC](https://discuss.elastic.co/t/data-aggregation-in-kibana/235522 "2020-06-03T10:52:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavchauhan0110](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pranavchauhan0110](https://discuss.elastic.co/u/pranavchauhan0110)\
**Post date:** [June 3, 2020, 10:52am UTC](https://discuss.elastic.co/t/data-aggregation-in-kibana/235522/1 "2020-06-03T10:52:49Z")

</div>

Hi,  
I want to extract data from an index based on contactDateTime property which is : "type": "date", format": "YYYY-MM-DD HH:mm:ss ZZ". What I want in the data is to filter the matching data between two specified time when we fix a day.  
For example: If we specify date as 2020-06-03 and we want the data recorded between 3pm-5pm. Then the filter should return the relevant results.  
Please help with the query part.  
What two queries should be there to acheive this result?

---

<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:** [July 1, 2020, 10:52am UTC](https://discuss.elastic.co/t/data-aggregation-in-kibana/235522/2 "2020-07-01T10:52:56Z")

</div>

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