# Filtering Exceptions: wildcard matching

**URL:** <https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229>\
**Category:** Open Q&A\
**Tags:** tagging\
**Created:** [May 30, 2018, 12:59pm UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229 "2018-05-30T12:59:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksandar\_rad1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aleksandar\_rad1](https://community.dynatrace.com/u/aleksandar_rad1)\
**Post date:** [May 30, 2018, 12:59pm UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/1 "2018-05-30T12:59:37Z")

</div>

I am trying to configure the Dynatrace to ignore different exceptions and I wonder:

Is it possible to use wildcard matching to specify different kinds of exceptions to be ignored? For instance, can I tell the Dynatrace to ignore all exceptions having the same package prefix?

Can I do the same for Custom handled exceptions, or I would need to specify the complete list of exceptions.

I tried to specify the base exception class of all my business exceptions as a one to be ignored, but it had no effect on the monitored exceptions.

---

<div class="post-metadata">

**Author:** ![nj\_njoku](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nj_njoku/32/13710_2.png) [@nj\_njoku](https://community.dynatrace.com/u/nj_njoku)\
**Post date:** [May 30, 2018, 8:53pm UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/2 "2018-05-30T20:53:00Z")

</div>

Hi Aleksandar,

In my experience, you will have to specify the full class name for each exception you want to ignore including for custom handled exceptions. I do recommend creating a request for enhancement for this to be able to set this using regex rules or if the class contains,ends with, begins with etc.

Thanks

NJ

---

<div class="post-metadata">

**Author:** ![nj\_njoku](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nj_njoku/32/13710_2.png) [@nj\_njoku](https://community.dynatrace.com/u/nj_njoku)\
**Post date:** [May 30, 2018, 9:09pm UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/3 "2018-05-30T21:09:17Z")

</div>

Seems there is already a RFE for this. Please upvote

[https://community.dynatrace.com/spaces/483/dynatrace…](https://community.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/203005/ignore-exceptions-containsdoes-not-contain.html)

Thanks

NJ

---

<div class="post-metadata">

**Author:** ![aleksandar\_radu](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@aleksandar\_radu](https://community.dynatrace.com/u/aleksandar_radu)\
**Post date:** [May 31, 2018, 5:51am UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/4 "2018-05-31T05:51:01Z")

</div>

Dear Ugochukwu,

Thank you very much for your feedback and support! It would be great to see this feature available in the future releases of Dynatrace 🙂

Best regards,

Alex

---

<div class="post-metadata">

**Author:** ![aleksandar\_rad1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aleksandar\_rad1](https://community.dynatrace.com/u/aleksandar_rad1)\
**Post date:** [May 31, 2018, 10:32am UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/5 "2018-05-31T10:32:14Z")

</div>

Dear Ugochukwu,

After talking to our team, we realized it would be quite tedious to enumerate all possible exceptions to be ignored: we are talking about tens, if not hundreds of different exceptions. Is there any strategy that could make our life easier?

Thank you in advance for your support!

Alex

---

<div class="post-metadata">

**Author:** ![aleksandar\_rad1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aleksandar\_rad1](https://community.dynatrace.com/u/aleksandar_rad1)\
**Post date:** [May 31, 2018, 1:10pm UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/6 "2018-05-31T13:10:59Z")

</div>

Dear Ugochukwu,

It turned out that you can use package prefix to filter all exceptions from that package. For instance, if you ignore the value of java.lang, you will ignore all exceptions having that package prefix: java.lang.Runtime, java.lang.anything.SomeException, etc.

Great thanks,

Aleksandar

---

<div class="post-metadata">

**Author:** ![nj\_njoku](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nj_njoku/32/13710_2.png) [@nj\_njoku](https://community.dynatrace.com/u/nj_njoku)\
**Post date:** [May 31, 2018, 1:21pm UTC](https://community.dynatrace.com/t/filtering-exceptions-wildcard-matching/12229/7 "2018-05-31T13:21:42Z")

</div>

Hi Aleksandar,

That’s good to know! I will keep this for reference. I appreciate you getting back to me.

Thanks

NJ
