# Template Creation for Davis Anomaly Detectors

**URL:** <https://community.dynatrace.com/t/template-creation-for-davis-anomaly-detectors/50460>\
**Category:** Alerting\
**Tags:** problem-detection, davis, anomaly-detection, problems\
**Created:** [February 25, 2025, 7:37pm UTC](https://community.dynatrace.com/t/template-creation-for-davis-anomaly-detectors/50460 "2025-02-25T19:37:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffscelza76](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jeffscelza76](https://community.dynatrace.com/u/jeffscelza76)\
**Post date:** [February 25, 2025, 7:37pm UTC](https://community.dynatrace.com/t/template-creation-for-davis-anomaly-detectors/50460/1 "2025-02-25T19:37:55Z")

</div>

I am creating some custom Davis Anomaly Detectors for logs and metrics and was wondering if anyone had a set of properties that they recommend. The goal is to better populate the Davis Problem once triggered to ensure seamless resolution. It would be nice to have links to logs as well as affected entities, but not sure how best to do this. Below is some Event Properties I am adding to my template:

| dt.source\_entity | {dims:dt.source\_entity} |
| --- | --- |
| event.type | CUSTOM\_ALERT |
| event.description | Threshold [{threshold}] for [{alert\_condition}] in your logs for entity [{dims:dt.source\_entity}] |
| event.name | Service - Found errors in logs |
| owner | team\_name |

Please let me know if I am missing something or there is a better way to do it.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 9, 2025, 7:13pm UTC](https://community.dynatrace.com/t/template-creation-for-davis-anomaly-detectors/50460/2 "2025-07-09T19:13:31Z")

</div>

This is great and can be expanded to support any organization. For example, If you leverage Xmatters, and this alert is unique for the specific team, you can always add in the Xmatters group name.&nbsp; We also add in the variable for the defined threshold/baseline so its clear to the team why the alert was triggered.

---

<div class="post-metadata">

**Author:** ![jeffscelza76](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jeffscelza76](https://community.dynatrace.com/u/jeffscelza76)\
**Post date:** [July 10, 2025, 10:21pm UTC](https://community.dynatrace.com/t/template-creation-for-davis-anomaly-detectors/50460/3 "2025-07-10T22:21:29Z")

</div>

Here is an updated to the fields that we are currently use:

 ![Screenshot 2025-07-10 at 4.19.38 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/3/539d61d27af02fcf29718859be23d151b193bcf7.png)

---

<div class="post-metadata">

**Author:** ![Dram007](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Dram007](https://community.dynatrace.com/u/Dram007)\
**Post date:** [October 27, 2026, 9:42am UTC](https://community.dynatrace.com/t/template-creation-for-davis-anomaly-detectors/50460/4 "2026-10-27T09:42:30Z")

</div>

Hi \*\*[jeffscelza76](https://community.dynatrace.com/u/jeffscelza76),

Were you able to associate logs in the problem generated from custom alerts. I have created custom alert based on DQL queries which checks for certain strings in the logs. The issue is I don’t see the associated logs in the problem. Is there a way possible to achieve it?\*\*
