# How to enrich a log event

**URL:** <https://community.dynatrace.com/t/how-to-enrich-a-log-event/48674>\
**Category:** Logs\
**Tags:** events, logs\
**Created:** [November 1, 2024, 8:18pm UTC](https://community.dynatrace.com/t/how-to-enrich-a-log-event/48674 "2024-11-01T20:18:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![strudeau](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@strudeau](https://community.dynatrace.com/u/strudeau)\
**Post date:** [November 1, 2024, 8:18pm UTC](https://community.dynatrace.com/t/how-to-enrich-a-log-event/48674/1 "2024-11-01T20:18:41Z")

</div>

I am trying to generate a log event and was wondering how enhance its content so as to contain both start and end time, for example.

Assuming a log such as:

- timestamp - started task A with status SUCCESS
- timestamp - finished task A with status FAILURE

How can I create a log event that would contain

taskName, taskStatus, startTime, endTime

Basically, I would need to create an event for when the “started” log is created and then create another event or update the original event with the latest status value and endTime.

How should I go about creating that? How will dynatrace know how to merge the information from the “started” event with the “finished” event? Thanks.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 4, 2024, 8:34am UTC](https://community.dynatrace.com/t/how-to-enrich-a-log-event/48674/2 "2024-11-04T08:34:22Z")

</div>

Hello&nbsp;[@strudeau](https://community.dynatrace.com/user/69569)

You can review Dynatrace documentation related to the raised inquiry:

- [Log events — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/lma-log-events)
- [Log content analysis — Dynatrace Docs](https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-analysis)
- [Log processing — Dynatrace Docs](https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-log-processing)
- [DQL matcher in logs — Dynatrace Docs](https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-log-processing-matcher)

Hoping it adds value.

KR,

Peter.
