# Possible to determine time diff between 2 entries which are groupable

**URL:** <https://discuss.elastic.co/t/possible-to-determine-time-diff-between-2-entries-which-are-groupable/281916>\
**Category:** Kibana\
**Created:** [August 19, 2021, 7:33am UTC](https://discuss.elastic.co/t/possible-to-determine-time-diff-between-2-entries-which-are-groupable/281916 "2021-08-19T07:33:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugohendriks](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hugohendriks](https://discuss.elastic.co/u/hugohendriks)\
**Post date:** [August 19, 2021, 7:33am UTC](https://discuss.elastic.co/t/possible-to-determine-time-diff-between-2-entries-which-are-groupable/281916/1 "2021-08-19T07:33:10Z")

</div>

Hi,

I would like to know if its possible in Kibana to be able to determine a duration time between 2 entries with the same correlationId. For example i have 2 entries in my index with both the same correlationId so they are groupable. Both have a datetime field. I would like to see in a map for example the difference between them.

example:

item corrId dateTime  
1 abcd 19-08-2021T00:01:00  
2 abcd 19-08-2021T00:02:30

I would like to see in a map

corrId timetaken  
abcd 00:01:30

Thanks!

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 19, 2021, 7:50am UTC](https://discuss.elastic.co/t/possible-to-determine-time-diff-between-2-entries-which-are-groupable/281916/2 "2021-08-19T07:50:18Z")

</div>

Hey @hugohendriks ,

Take a look at this answer [Calculating duration between two documents in Elasticsearch](https://discuss.elastic.co/t/calculating-duration-between-two-documents-in-elasticsearch/92858)

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![hugohendriks](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hugohendriks](https://discuss.elastic.co/u/hugohendriks)\
**Post date:** [August 19, 2021, 10:47am UTC](https://discuss.elastic.co/t/possible-to-determine-time-diff-between-2-entries-which-are-groupable/281916/3 "2021-08-19T10:47:13Z")

</div>

I looked at the youtube presentation and I see the resemblance but I can't figure out the solution how i can achieve this in Kibana though

---

<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:** [September 16, 2021, 10:47am UTC](https://discuss.elastic.co/t/possible-to-determine-time-diff-between-2-entries-which-are-groupable/281916/4 "2021-09-16T10:47:32Z")

</div>

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