# Create problem alert from Errors or Exception message

**URL:** <https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625>\
**Category:** Alerting\
**Tags:** problem-notification, problems-classic, javascript, java\
**Created:** [August 21, 2019, 4:10am UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625 "2019-08-21T04:10:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AskMe-Solutions](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/askme-solutions/32/33154_2.png) [@AskMe-Solutions](https://community.dynatrace.com/u/AskMe-Solutions)\
**Post date:** [August 21, 2019, 4:10am UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625/1 "2019-08-21T04:10:18Z")

</div>

Hello everyone,

 ![21596-tli-errormsg.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/a/c/ac7203e331430485ffcb1a307d387e64889a71b4.jpeg)

The customer need to Dynatrace alert problem notification to their team if Dynatrace facing Exception message like on picture above (yellow highlight). Dynatrace can do it ?

Thank in advance,

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [August 21, 2019, 5:01am UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625/2 "2019-08-21T05:01:28Z")

</div>

I think there is no direct way to do this. Dynatrace is alerting on failures rate itself not about particular exception. There is no option in custom alert for this as well (at least I didn’t found it). But if this is exception it should be visible in process logs as well, am I right? If yes and you have log analytics license that is covering size of this log, you can alway create log based event:

> **[Log content analysis](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/analyze-log-data)**
>
> Explore log data with a log viewer or create custom attributes, log events, and metrics to process and analyze your log data in Dynatrace.

In such case problem will be fired based on this.

Sebastian

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [August 21, 2019, 6:49am UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625/3 "2019-08-21T06:49:27Z")

</div>

The upcoming improvement of the custom events and alert configuration will allow you to define an alert on a custom service metric. A custom service metric could be defined to catch your specific error code and count those occurrence. The alert would then be sent out if the occurrence count is above your selected threshold.

As I mentioned this is an upcoming feature that you can request as a preview in Dynatrace release 176.

Best greetings,

Wolfgang

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [August 21, 2019, 6:55am UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625/4 "2019-08-21T06:55:19Z")

</div>

Would it cover metrics made based on exception? Because as I understand here, response code is not issue (can be caused by multiple other exceptions).

Sebastian

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [February 27, 2020, 9:54pm UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625/5 "2020-02-27T21:54:43Z")

</div>

Hhhhhhmmmm… I was just poking around trying to figure this one out myself. You are correct I believe. Event today on the latest release, I do not see anything dealing with exceptions in the “Custom event for alerting” under services. I have a team would had some exceptions under a service and would like to raise a problem when they are detected.

I was looking at “Error detection” and “Custom errors” under the service, but I am not confident that anything in there would trigger a problem based on an exception.

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [April 21, 2024, 2:48pm UTC](https://community.dynatrace.com/t/create-problem-alert-from-errors-or-exception-message/21625/6 "2024-04-21T14:48:59Z")

</div>

Hi

content="ORA-128&nbsp; error "

content=“dynatrace alert ORA-128”

We want to generate alert if “ORA-” starting of the line, not in the middle.&nbsp; How do we do it?.
