# Create a preview with a media between events

**URL:** https://discuss.elastic.co/t/create-a-preview-with-a-media-between-events/287013
**Category:** Kibana
**Created:** [October 18, 2021, 3:40pm UTC](https://discuss.elastic.co/t/create-a-preview-with-a-media-between-events/287013 "2021-10-18T15:40:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)
#### Post date: [October 18, 2021, 3:40pm UTC](https://discuss.elastic.co/t/create-a-preview-with-a-media-between-events/287013/1 "2021-10-18T15:40:35Z")

</div>

Good afternoon, I would like to know how to create an average between the events, below is an example:

event 1  
time =\> 1:00:00  
id=\> 1

event 2  
time =\> 1:10:00  
id=\> 2

event 3 =\> 1:30:00  
id=\> 3

event 3 =\> 1:33:00  
id=\> 4

from event 1 to 2 was 10m  
from enveto 2 to 3 it was 20m  
from event 3 to 4 had 3m

so the average would be 33/3 = 11m

Please could you help me.

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [October 25, 2021, 6:21pm UTC](https://discuss.elastic.co/t/create-a-preview-with-a-media-between-events/287013/2 "2021-10-25T18:21:23Z")

</div>

Hello,

Are you looking at creating a specific visualization chart? You can checkout lens or TSVB viz

Have you looked at our documentation? [Kibana Guide [7.15] | Elastic](https://www.elastic.co/guide/en/kibana/current/index.html)  
Also this is a great webinar to understand about getting started with Kibana - [Getting Started with Kibana | Elastic Videos](https://www.elastic.co/webinars/getting-started-kibana)

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)
#### Post date: [October 28, 2021, 7:04pm UTC](https://discuss.elastic.co/t/create-a-preview-with-a-media-between-events/287013/3 "2021-10-28T19:04:08Z")

</div>

Sorry, I don't think I explained it well, I've already done some graphs, but I can't create something that tells the average to calculate the interval between documents

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6fbd05188ca29dc8a385a99c8cf5fb82c9264910.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: [November 25, 2021, 7:04pm UTC](https://discuss.elastic.co/t/create-a-preview-with-a-media-between-events/287013/4 "2021-11-25T19:04:49Z")

</div>

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