# Custom Alert: Log Event Detection

**URL:** <https://community.dynatrace.com/t/custom-alert-log-event-detection/55945>\
**Category:** Alerting\
**Tags:** log-analytics, problem-notification, anomaly-detection\
**Created:** [May 19, 2026, 12:18pm UTC](https://community.dynatrace.com/t/custom-alert-log-event-detection/55945 "2026-05-19T12:18:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apanoobee](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@apanoobee](https://community.dynatrace.com/u/apanoobee)\
**Post date:** [May 19, 2026, 12:18pm UTC](https://community.dynatrace.com/t/custom-alert-log-event-detection/55945/1 "2026-05-19T12:18:17Z")

</div>

I have set up a custom alert but I’d like to be able to display a specific number string to the alert description. How would I go about doing this?

 ![apanoobee_0-1779193003066.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/8/d83d139b58143c630f6866700f6fc2d0f245b014.png)

 ![apanoobee_1-1779193039173.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/f/bf3cd2f15b13066a4bd70eab847da851989aa629.png)

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [June 18, 2026, 1:46am UTC](https://community.dynatrace.com/t/custom-alert-log-event-detection/55945/2 "2026-06-18T01:46:27Z")

</div>

Hi&nbsp;[@apanoobee](https://community.dynatrace.com/user/55511)

Extract the field -&nbsp;In your log event query, use parse or extract to pull the specific number/string into a named field. For example:

fetch logs  
| filter contains(content, “exception:A record could not be deleted”)  
| parse content, “LD ‘ticketId:’ STRING:ticketId”

Use the extracted field in the Event Template -&nbsp;In your Log Event configuration under Event Template → Description, you can reference extracted fields using curly brace placeholders:

Child records found: integrity constraint violated - Ticket ID: {ticketId}

Ensure the field is available as an event property -&nbsp;Under the Properties section of your log event configuration, add the extracted field (ticketId) as a custom property. This makes it available for use in the alert title and description templates.

Thanks,

Sujit
