# Use Wildcard Filtering in Dynatrace Dashboards

**URL:** <https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325>\
**Category:** Dashboarding\
**Tags:** data-explorer, filter, dashboards-classic\
**Created:** [May 31, 2022, 3:18pm UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325 "2022-05-31T15:18:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_S](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Larry\_S](https://community.dynatrace.com/u/Larry_S)\
**Post date:** [May 31, 2022, 3:18pm UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/1 "2022-05-31T15:18:50Z")

</div>

_Summary:&nbsp;Wildcard filtering in Dynatrace dashboards allows dynamic data selection for metrics and entities. This thread explains how to configure wildcard filters, use regex patterns, and optimise dashboard flexibility for large environments._

Hello,

In the Dynatrace dashboard, Data Explorer, is there a way to add wildcard exception filtering? Example, filter to show me all of something except for the somethings with “test” in their names.

Thank you in advance.

-Larry

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [June 1, 2022, 5:19am UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/2 "2022-06-01T05:19:34Z")

</div>

HI&nbsp;[@Larry\_S](https://community.dynatrace.com/user/48033)

Not possible,

But by creating a calculated metric on that exception, you can build it.

You can add this condition in the conditions of the calculated metric.

---

<div class="post-metadata">

**Author:** ![Kenny\_Gillette](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny_gillette/32/20170_2.png) [@Kenny\_Gillette](https://community.dynatrace.com/u/Kenny_Gillette)\
**Post date:** [June 1, 2022, 7:24pm UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/3 "2022-06-01T19:24:18Z")

</div>

Another option is do create a tag that does not have “test” in it and use that tag in data explorer.

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [June 2, 2022, 12:28pm UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/4 "2022-06-02T12:28:17Z")

</div>

similar issue solved&nbsp;[Solved: Re: How to create alert based on paticular exception ? - Dynatrace Community](https://community.dynatrace.com/post/117615#M1352)

[Create calculated metrics | Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/additional-configuration/rum-calculated-metrics)

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [June 8, 2022, 5:00am UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/5 "2022-06-08T05:00:49Z")

</div>

Hey,

have you tried code mode and the combination of the following transformations:

\* **prefix** (= starts with - e.g. prefix(“My server”) for My server 1, My server 2, My server 3…

\* **not** (only available using the entity selector in the metric expression) or **ne** (not equals for exact matches)

 ![zietho_0-1654688475451.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/0/807c889e62c9599537955a7160240a5cd2b5ecd8.png)

more info on it here:&nbsp;[Metrics API - Metric selector — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#conditions)

example:

```markup
builtin:apps.web.actionCount.category:filter(and(in("dt.entity.application",entitySelector("type(application),not(entityName(~"HipsterShopLogs~"))"))))

```

regards

---

<div class="post-metadata">

**Author:** ![Larry\_S](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Larry\_S](https://community.dynatrace.com/u/Larry_S)\
**Post date:** [June 8, 2022, 11:34am UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/6 "2022-06-08T11:34:27Z")

</div>

I’m not sure that solution applies, but thanks.&nbsp; We use Active Gate monitoring and I do not even see&nbsp;Settings → Server side monitoring → Calculated service metrics.&nbsp; I’m thinking this is an Admin function, of which I am not.

---

<div class="post-metadata">

**Author:** ![Larry\_S](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Larry\_S](https://community.dynatrace.com/u/Larry_S)\
**Post date:** [June 21, 2022, 12:26pm UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/7 "2022-06-21T12:26:31Z")

</div>

I read the documentation and I cannot figure out how to code the filter for the code:

ext:tech.IBMMQ\_Java.Queue.Depth:filter(and(in(“dt.entity.custom\_device”,entitySelector(“type(custom\_device),entityName.equals(~“IBM MQ - Non-Prod-QMGR - PADB2QA~”)”)),eq(Queue,“PSL.ASN.FROMMMP.Q”))):splitBy(Queue):max:auto:sort(value(max,descending)):limit(100)

I selected (in “Build”) to select a specific “Queue” of&nbsp;“PSL.ASN.FROMMMP.Q”.&nbsp; That would be okay if my device only had that one “Queue”, but, in this case, there are many and all of them start with “PSL”. My goal is to select all “Queues” that begin with “PSL”

---

<div class="post-metadata">

**Author:** ![Larry\_S](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Larry\_S](https://community.dynatrace.com/u/Larry_S)\
**Post date:** [June 21, 2022, 2:01pm UTC](https://community.dynatrace.com/t/use-wildcard-filtering-in-dynatrace-dashboards/35325/8 "2022-06-21T14:01:18Z")

</div>

I figured it out!

ext:tech.IBMMQ\_Java.Queue.Depth:filter(and(prefix(Queue,“PSL.”),in(“dt.entity.custom\_device”,entitySelector(“type(custom\_device),entityName.equals(~“IBM MQ - Non-Prod-QMGR - BTRNAQA~”)”)))):splitBy(Queue):max:auto:sort(value(max,descending)):limit(100)
