# To make graph the interval between events with Kibana

**URL:** <https://discuss.elastic.co/t/to-make-graph-the-interval-between-events-with-kibana/187131>\
**Category:** Kibana\
**Created:** [June 24, 2019, 12:57pm UTC](https://discuss.elastic.co/t/to-make-graph-the-interval-between-events-with-kibana/187131 "2019-06-24T12:57:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeneA](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@GeneA](https://discuss.elastic.co/u/GeneA)\
**Post date:** [June 24, 2019, 12:57pm UTC](https://discuss.elastic.co/t/to-make-graph-the-interval-between-events-with-kibana/187131/1 "2019-06-24T12:57:49Z")

</div>

Data is indexed in elasticsearch in the form of "time + event" about a person's behavior pattern. Using this data

・ Sleep time (interval between 'Going to bed' and 'Get up')

・ Working hours (interval between 'Arriving at work' and 'Leave the workplace ')

Is it possible to graph the time difference between events etc?

If so, how can I do this?

The image of indexed data is as follows;  
2019/6/2 7:00 Get up  
2019/6/2 7:20 Leave for work  
2019/6/2 8:20 Arriving at work  
2019/6/2 17:20 Leave the workplace  
2019/6/2 18:20 Arriving at home  
2019/6/2 22:00 Going to bed  
2019/6/3 7:00 Get up Holiday  
2019/6/3 22:00 Going to bed  
2019/6/4 7:00 Get up  
2019/6/4 7:20 Leave for work  
2019/6/4 8:20 Arriving at work  
2019/6/4 17:20 Leave the workplace  
2019/6/5 8:20 Arriving at work Drink overnight and go to work  
2019/6/5 17:20 Leave the workplace  
2019/6/5 18:20 Arriving at home  
2019/6/6 18:20 Going to bed  
2019/6/7 3:20 Get up

The events that occur in a day are not always the same. As you may see when you look at the data, there are days when this person will not work.

My Kibana is running version 7.0.1 on Windows 7.  
Thank you.

---

<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 22, 2019, 12:57pm UTC](https://discuss.elastic.co/t/to-make-graph-the-interval-between-events-with-kibana/187131/2 "2019-07-22T12:57:52Z")

</div>

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