# Event start date + duration visualization

**URL:** <https://discuss.elastic.co/t/event-start-date-duration-visualization/121297>\
**Category:** Kibana\
**Created:** [February 23, 2018, 10:22pm UTC](https://discuss.elastic.co/t/event-start-date-duration-visualization/121297 "2018-02-23T22:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyril\_zarakailloux](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyril_zarakailloux/32/28131_2.png) [@Cyril\_zarakailloux](https://discuss.elastic.co/u/Cyril_zarakailloux)\
**Post date:** [February 23, 2018, 10:22pm UTC](https://discuss.elastic.co/t/event-start-date-duration-visualization/121297/1 "2018-02-23T22:22:23Z")

</div>

Hi !

I'm currently dealing with documents having a start date, an end date and a duration (in seconds) for events. What I'm trying to do in Kibana, is to display the number of ongoing event (y-axis) based on time (x-axis).  
I tried doing things, and the best I could get to is to have the number of events started at a certain date, which is not extactly what I desire.

I ran into this subject : [display-concurrency-in-data-on-kibana](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006/10) which unfortunately did not helped me enough.

Is there any way to do this ? I'm not very familiar with the JSON input field, but I imagine I'll have to write a little script ?

I'm running the 6.2.1 version

Thanks in advance for your help !

---

<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:** [February 23, 2018, 11:50pm UTC](https://discuss.elastic.co/t/event-start-date-duration-visualization/121297/2 "2018-02-23T23:50:29Z")

</div>

The JSON input field lets you set aggregation fields that do not have GUI components. For example, if you select the aggregation [Unique Count](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-aggregations-metrics-cardinality-aggregation.html), there are no GUI inputs for setting the parameter `precision_threshold` but you can use set it via JSON input field.

Now back to your problem - you could maybe try using Visual Builder visualization and try using a (bucket script aggregation)[[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html)] to determine if an event that started in on bucket also ended in the same bucket.

---

<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:** [March 23, 2018, 11:50pm UTC](https://discuss.elastic.co/t/event-start-date-duration-visualization/121297/3 "2018-03-23T23:50:58Z")

</div>

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