How to enrich a log event

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.

Hello @strudeau

You can review Dynatrace documentation related to the raised inquiry:

Hoping it adds value.

KR,

Peter.