Log Analytics
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamic link to Dynatrace logs

Maine
Newcomer

I would like to include a dynamic link to Dynatrace logs filtered by session_id in my Davis event notification. How can I do this?

1 REPLY 1

t_pawlak
Leader

Hi,
IMO you can do it, but the best approach is to use a Workflow with a Davis event / Davis problem trigger rather than classic Problem notifications. Workflows can access the event payload, read event fields, and build a custom URL. Dynatrace documents the Davis triggers, access to the trigger payload, and the environment().url helper.
Event triggers for workflows 
If session_id must be present on the event itself, not only inside the raw log line. For log-based events, Dynatrace lets you add custom Properties populated from log placeholders, so if session_id exists in the log record, you can copy it into an event property
Log events 
Try build something like this:
1. create a log event in Logs > Events extraction,
2. add a property like session_id = {session_id},
3. trigger a Workflow from that Davis event or problem,
4. build a Logs app URL filtered by that session_id.
You can use {{ environment().url }} as the base URL, and Dynatrace documents the Logs app path (/ui/apps/dynatrace.logs/#) plus the intent-based link pattern with encoded query state.

Featured Posts