# Dynamic link to Dynatrace logs

**URL:** <https://community.dynatrace.com/t/dynamic-link-to-dynatrace-logs/55317>\
**Category:** Logs\
**Tags:** problems, logs\
**Created:** [March 20, 2026, 10:54am UTC](https://community.dynatrace.com/t/dynamic-link-to-dynatrace-logs/55317 "2026-03-20T10:54:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maine](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Maine](https://community.dynatrace.com/u/Maine)\
**Post date:** [March 20, 2026, 10:54am UTC](https://community.dynatrace.com/t/dynamic-link-to-dynatrace-logs/55317/1 "2026-03-20T10:54:07Z")

</div>

**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?**

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [March 23, 2026, 10:39am UTC](https://community.dynatrace.com/t/dynamic-link-to-dynatrace-logs/55317/2 "2026-03-23T10:39:56Z")

</div>

Hi,  
IMO&nbsp;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](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/trigger/event-trigger)&nbsp;  
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](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-processing/lma-log-events)&nbsp;  
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.
