# Calculate duration of transactions

**URL:** <https://discuss.elastic.co/t/calculate-duration-of-transactions/316522>\
**Category:** Elasticsearch\
**Created:** [October 13, 2022, 10:53am UTC](https://discuss.elastic.co/t/calculate-duration-of-transactions/316522 "2022-10-13T10:53:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [October 13, 2022, 10:53am UTC](https://discuss.elastic.co/t/calculate-duration-of-transactions/316522/1 "2022-10-13T10:53:08Z")

</div>

Hi  
need to calcualte duration bettween each Out/In where A=A+100 B=B IDS=IDS

`00:03:02.067 app catZZ_DDP_AP: IN[host]A[1000]B[123456]IDS[123456789987] 00:03:02.110 app catZZ_DDP_AP: OUT[host]A[1100]B[123456]IDS[123456789987]`

expected output:

> duration | B | IDS  
> 00:00:00.043 |123456 | 123456789987

Any idea?  
Thanks  
Labels

---

<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 10, 2022, 10:54am UTC](https://discuss.elastic.co/t/calculate-duration-of-transactions/316522/2 "2022-11-10T10:54:04Z")

</div>

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