# how to get a metric that show the duration of a transaction

**URL:** <https://community.dynatrace.com/t/how-to-get-a-metric-that-show-the-duration-of-a-transaction/54301>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, logs\
**Created:** [December 4, 2025, 6:10pm UTC](https://community.dynatrace.com/t/how-to-get-a-metric-that-show-the-duration-of-a-transaction/54301 "2025-12-04T18:10:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marusla](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marusla/32/24217_2.png) [@marusla](https://community.dynatrace.com/u/marusla)\
**Post date:** [December 4, 2025, 6:10pm UTC](https://community.dynatrace.com/t/how-to-get-a-metric-that-show-the-duration-of-a-transaction/54301/1 "2025-12-04T18:10:26Z")

</div>

i have a log, by example , i want to create a maketimeseries that show the fluctuation of Duration fields on time , please could you help me

| Transaction | Start | End | Duration |
| --- | --- | --- | --- |
| 1aa | 2025-12-04 13:00:56.023 | 2025-12-04 13:00:56.039 | 16 ms |
| 2aa | 2025-12-04 13:00:57.023 | 2025-12-04 13:00:57.034 | 11 ms |

---

<div class="post-metadata">

**Author:** ![JeanBlanc](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeanblanc/32/25897_2.png) [@JeanBlanc](https://community.dynatrace.com/u/JeanBlanc)\
**Post date:** [December 8, 2025, 3:18pm UTC](https://community.dynatrace.com/t/how-to-get-a-metric-that-show-the-duration-of-a-transaction/54301/2 "2025-12-08T15:18:41Z")

</div>

Hi&nbsp;[@marusla](https://community.dynatrace.com/user/86794),

You can simply use OpenPipeline to process your log and add a new field Duration.

The new field should looks like :

 ![JeanBlanc_0-1765207088305.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/5/f59640420a7d38a29961265e01b4b2c49a3b3853.png)

Best regards,
