# Kibana timeseries for live events

**URL:** <https://discuss.elastic.co/t/kibana-timeseries-for-live-events/94040>\
**Category:** Kibana\
**Created:** [July 21, 2017, 1:23am UTC](https://discuss.elastic.co/t/kibana-timeseries-for-live-events/94040 "2017-07-21T01:23:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manas\_Paldhe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manas_paldhe/32/20307_2.png) [@Manas\_Paldhe](https://discuss.elastic.co/u/Manas_Paldhe)\
**Post date:** [July 21, 2017, 1:23am UTC](https://discuss.elastic.co/t/kibana-timeseries-for-live-events/94040/1 "2017-07-21T01:23:55Z")

</div>

I am using elasticsearch and kibana for creating dashboard. I have events coming in. Every event has a start time and end time. I want to create a graph in Kibana that tells me how many events were live at a particular time.

For a single timestamp, I can run ES query with "start\_time" \< given\_time and "end\_time" \> given\_time". example query: {"query": {"bool": {"must": [{"range": {"start\_time": {"gte": "now-2d/d"}} }, {"range": {"end\_time": {"lte": "now-10m"}} }] }}}

However I am not sure how I can create a graph for this using Kibana.

The graph should ideally look tell me at given time (or time range in case of histogram), how many events were live.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [July 21, 2017, 9:10pm UTC](https://discuss.elastic.co/t/kibana-timeseries-for-live-events/94040/2 "2017-07-21T21:10:18Z")

</div>

There is currently work being done for supporting aggregations on the `date_range` type, but it's not something Elasticsearch currently supports.

Though, if you know the buckets you want to create ahead of time, you could manually split the visualization with date ranges.

![](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4cefef885f2ba0ba1562fa48f714ce87042fdc3.png)

---

<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:** [August 18, 2017, 9:10pm UTC](https://discuss.elastic.co/t/kibana-timeseries-for-live-events/94040/3 "2017-08-18T21:10:34Z")

</div>

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