# Kibana search for past 2 hrs

**URL:** <https://discuss.elastic.co/t/kibana-search-for-past-2-hrs/35187>\
**Category:** Kibana\
**Created:** [November 20, 2015, 9:18pm UTC](https://discuss.elastic.co/t/kibana-search-for-past-2-hrs/35187 "2015-11-20T21:18:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beorn107](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@beorn107](https://discuss.elastic.co/u/beorn107)\
**Post date:** [November 20, 2015, 9:18pm UTC](https://discuss.elastic.co/t/kibana-search-for-past-2-hrs/35187/1 "2015-11-20T21:18:41Z")

</div>

Hi

I have a requirement to compare averages for a metric over the past 2 hours to the average for the day. In ElasticSearch I can query an index for the past 2 hours but I don't see how to create a search in Kibana that would accomplish the same thing.

My idea was that if I could create a saved search in Kibana for records created in the past 2 hrs I could create a visualization off of the search and display it next to a visualization built off of the larger index.

Is there anyway to accomplish this?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 21, 2015, 5:59am UTC](https://discuss.elastic.co/t/kibana-search-for-past-2-hrs/35187/2 "2015-11-21T05:59:02Z")

</div>

You can't currently do this in KB.  
Timelion may be more suitable though.

---

<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 6, 2017, 2:08pm UTC](https://discuss.elastic.co/t/kibana-search-for-past-2-hrs/35187/3 "2017-07-06T14:08:34Z")

</div>


