# Ignore Exceptions by Message Pattern in Dynatrace Alerting Rules

**URL:** <https://community.dynatrace.com/t/ignore-exceptions-by-message-pattern-in-dynatrace-alerting-rules/19226>\
**Category:** Alerting\
**Tags:** distributed-traces-classic, problem-detection\
**Created:** [May 4, 2020, 3:01pm UTC](https://community.dynatrace.com/t/ignore-exceptions-by-message-pattern-in-dynatrace-alerting-rules/19226 "2020-05-04T15:01:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 31, 2021, 7:10am UTC](https://community.dynatrace.com/t/ignore-exceptions-by-message-pattern-in-dynatrace-alerting-rules/19226/9 "2021-08-31T07:10:28Z")

</div>

Hi&nbsp;[@Malaik](https://community.dynatrace.com/user/23195)&nbsp;and [@larry\_roberts](https://community.dynatrace.com/user/33677)&nbsp;,

if you ignore the exceptions in the deep monitoring settings then they are not captured and you won’t see them. This setting is global.

If you change the configuration on the service settings screen, this affects the **failure detection** - that means exceptions will be captured (you will see them), but they won’t be used as failure reasons. Or you can also setup different rules such as mark request as successful when an exception is found..

Luckily, you don’t have iterate over a list of your services and you can setup rules using API to define those. This is achieved through [Failure detection configuration API.](https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/service-api/failure-detection/)

It’s available from Dynatrace version 1.216. This approach is very flexible and allows you to configure rules on subsets of your services.

To summarize:

- Set exception to ignore only when you don’t want to capture them - this also has effect on the agent overhead - lower number of exceptions results into lower overhead.
- Set failure detection rules or service failure detection&nbsp; when you want to see the exception, but not mark those requests as failed.

From my experience, the failure detection mechanism is often overlooked by customers and then they are struggling with alerting noise since Dynatrace considers unknown exceptions to be failures by default. (Exceptions messages such as “Bad password” are good examples).

---

_[View the full topic](https://community.dynatrace.com/t/ignore-exceptions-by-message-pattern-in-dynatrace-alerting-rules/19226)._
