# Custom Alert Based on Root Cause Pattern in Dynatrace Managed

**URL:** <https://community.dynatrace.com/t/custom-alert-based-on-root-cause-pattern-in-dynatrace-managed/52743>\
**Category:** Dynatrace Managed\
**Tags:** alerting-profile, metric-events, problem-notification, anomaly-detection\
**Created:** [July 31, 2025, 12:36pm UTC](https://community.dynatrace.com/t/custom-alert-based-on-root-cause-pattern-in-dynatrace-managed/52743 "2025-07-31T12:36:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aboud1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Aboud1](https://community.dynatrace.com/u/Aboud1)\
**Post date:** [July 31, 2025, 12:36pm UTC](https://community.dynatrace.com/t/custom-alert-based-on-root-cause-pattern-in-dynatrace-managed/52743/1 "2025-07-31T12:36:05Z")

</div>

**Hello All,**

is it possible to configure a **custom alert** in Dynatrace Managed based on a **specific pattern appearing in the root cause section of a problem**.

We are trying to build an alerting rule that detects **certain exception messages** or **specific error text patterns** that appear under the _Problem \> Root cause_ section.

* * *

### Example (for illustration only):

it shows a case where the root cause includes the following pattern:

Error while creating customer interaction record for product:XXXXX

And the related exception is:

java.lang.IllegalArgumentException

We are **not trying to create an alert for this specific case** , but it is **a good example** of the type of root cause pattern we would like to monitor and alert on.

We want to know if there is **any method or workaround** that allows us to:

1. Alert based on specific keywords or patterns in the **Problem root cause section**.
2. Create custom events if a certain **exception type or message text** is detected.

* * *

### Environment:

- Dynatrace Managed
- Logs ingestion: ❌ Not enabled/preserved

* * *

Looking forward to your guidance.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [August 5, 2025, 5:00am UTC](https://community.dynatrace.com/t/custom-alert-based-on-root-cause-pattern-in-dynatrace-managed/52743/2 "2025-08-05T05:00:48Z")

</div>

Hi,

In Dynatrace Managed, it’s not possible to create alerts directly based on text found in the “root cause” section of a problem. However, a similar outcome can be achieved by configuring log monitoring and creating custom events based on specific phrases or exceptions, which can then trigger alerts.

Radek

---

<div class="post-metadata">

**Author:** ![Aboud1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Aboud1](https://community.dynatrace.com/u/Aboud1)\
**Post date:** [August 26, 2025, 10:09am UTC](https://community.dynatrace.com/t/custom-alert-based-on-root-cause-pattern-in-dynatrace-managed/52743/3 "2025-08-26T10:09:22Z")

</div>

Hi Radek,

Thanks a lot for your input 🙏. I managed to find a solution that works without relying on log monitoring. Let me share the steps in case it helps others:

**Steps I followed:**

1. **Create a Request Attribute**
  - Navigate to _Settings → Service-side service monitoring → Request attributes_.
  - Add a new request attribute that captures the _exception class_ or _error message_ from the failing requests.

2. **Create a Calculated Service Metric**
  - Go to _Settings → Server-side service monitoring → Calculated service metrics_.
  - Create a new metric with:
    - **Metric source** = the request attribute you created
    - **Unit** = Count
    - Optional: Add a filter condition so it only counts when the error message contains your specific phrase.

3. **Create a Custom Event for Alerting**
  - Navigate to _Settings → Anomaly detection → Custom events for alerting_.
  - Create a new event with:
    - **Metric** = the calculated service metric
    - **Threshold** = ≥ 1 (so if the error shows up at least once, it triggers an alert)
    - Assign the right _management zone_ so the correct team gets the alert.

**Result:**  
Now, even if Dynatrace doesn’t automatically generate a problem card, an alert will still be raised whenever this specific error message appears.

Hopefully this will be useful for others facing the same scenario&nbsp;✌️
