# Email alerts using workflow

**URL:** <https://community.dynatrace.com/t/email-alerts-using-workflow/51639>\
**Category:** Automations\
**Tags:** dql, workflows, logs\
**Created:** [May 14, 2025, 2:22pm UTC](https://community.dynatrace.com/t/email-alerts-using-workflow/51639 "2025-05-14T14:22:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suraj\_gupta3](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@suraj\_gupta3](https://community.dynatrace.com/u/suraj_gupta3)\
**Post date:** [May 14, 2025, 2:22pm UTC](https://community.dynatrace.com/t/email-alerts-using-workflow/51639/1 "2025-05-14T14:22:26Z")

</div>

Hello Everyone,

We have a requirement where we need to get an alarm via Email for below DQL query.&nbsp; the alarm should trigger whenever the threshold met “NOK”. can you please guide how do we achieve this? Also we need to suppress this alert for 12 hours if its in open state.

 ![suraj_gupta3_0-1747232377551.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4e4767056ea7f3c0d3452f2e5d6087c2260909be.png)

frequency - every 5 mins  
Threshold - search THRESHOLD=“NOK”  
Suppress - After 12 hours

Regards,

Suraj Gupta

---

<div class="post-metadata">

**Author:** ![christian\_kreuz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_kreuz/32/21669_2.png) [@christian\_kreuz](https://community.dynatrace.com/u/christian_kreuz)\
**Post date:** [May 15, 2025, 12:25pm UTC](https://community.dynatrace.com/t/email-alerts-using-workflow/51639/2 "2025-05-15T12:25:26Z")

</div>

Hi!

You can achieve this by creating a metric from logs via OpenPipeline:&nbsp;[https://docs.dynatrace.com/docs/discover-dynatrace/platform/openpipeline/use-cases/tutorial-log-processing-pipeline](https://docs.dynatrace.com/docs/discover-dynatrace/platform/openpipeline/use-cases/tutorial-log-processing-pipeline)

Then you can create an Anomaly Detector:&nbsp;[Anomaly Detection app — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/platform/davis-ai/anomaly-detection/set-up-a-customized-anomaly-detector/how-to-set-up/anomaly-detection-app)

Last but not least, you can leverage simple Workflows to send an E-mail alert:&nbsp;[Create a simple workflow in Dynatrace Workflows — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/simple-workflow)

Hope this helps!

BR Christian
