# Graph that fills in time in between events

**URL:** <https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210>\
**Category:** Kibana\
**Created:** [August 27, 2015, 9:57pm UTC](https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210 "2015-08-27T21:57:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Acorda](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Tim\_Acorda](https://discuss.elastic.co/u/Tim_Acorda)\
**Post date:** [August 27, 2015, 9:57pm UTC](https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210/1 "2015-08-27T21:57:49Z")

</div>

I have two separate events and would love a graph that gives me a bar as wide as the difference between the two events. Is this something achievable in kibana?

The two events are "out of sync", and "re-sync", and this event pair can happen multiple times.

Let me know if you need more context! Thank you!

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 28, 2015, 4:14am UTC](https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210/2 "2015-08-28T04:14:49Z")

</div>

It would be helpful to see the structure of your data for a sample event (either in JSON or a screenshot from Discover in Kibana), as well as a mockup (can be just a pencil drawing) of a visualization you're interested in.

---

<div class="post-metadata">

**Author:** ![appetito](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@appetito](https://discuss.elastic.co/u/appetito)\
**Post date:** [September 30, 2015, 8:03am UTC](https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210/3 "2015-09-30T08:03:23Z")

</div>

I have similar problem  
i have log messages like this:  
{@timestamp: 100, msg: " EVENT\_START"}  
...  
{@timestamp: 200, msg: " EVENT\_STOP"}  
{@timestamp: 300, msg: " EVENT\_START"}  
{@timestamp: 400, msg: " EVENT\_START"}  
...  
{@timestamp: 410, msg: " EVENT\_STOP"}  
{@timestamp: 520, msg: " EVENT\_STOP"}  
...

And i need grap on deltas between START and STOP events:  
for this example log graf data is 100, 220, 10

how can i made it?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [October 6, 2015, 3:38am UTC](https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210/4 "2015-10-06T03:38:07Z")

</div>

To do this sort of correlation, at a minimum I'd assume you need an event ID, otherwise it's hard to know which "start" goes with which "stop". However, as it stands today, I'd suspect that you will have to calculate these durations outside of Elasticsearch and store those as separate documents, prior to graphing in Kibana.

---

<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:11pm UTC](https://discuss.elastic.co/t/graph-that-fills-in-time-in-between-events/28210/5 "2017-07-06T14:11:57Z")

</div>


