# Multiple named entities when setting up a metric event

**URL:** <https://community.dynatrace.com/t/multiple-named-entities-when-setting-up-a-metric-event/43482>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, services-classic\
**Created:** [January 5, 2024, 7:35pm UTC](https://community.dynatrace.com/t/multiple-named-entities-when-setting-up-a-metric-event/43482 "2024-01-05T19:35:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstrick](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jstrick](https://community.dynatrace.com/u/jstrick)\
**Post date:** [January 5, 2024, 7:35pm UTC](https://community.dynatrace.com/t/multiple-named-entities-when-setting-up-a-metric-event/43482/1 "2024-01-05T19:35:03Z")

</div>

I’m setting up a metric event based on a custom metric and I need to exclude multiple entities. When I attempt to add multiple entities, I get an error “Entity filter contains multiple filters of the same type ‘NAME’”. Is there a way to add multiple named entities to the filter to exclude them from the events?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [January 5, 2024, 7:38pm UTC](https://community.dynatrace.com/t/multiple-named-entities-when-setting-up-a-metric-event/43482/2 "2024-01-05T19:38:21Z")

</div>

What if you use a common tag between these entities and use it as exclude rule?

---

<div class="post-metadata">

**Author:** ![jstrick](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jstrick](https://community.dynatrace.com/u/jstrick)\
**Post date:** [January 5, 2024, 8:03pm UTC](https://community.dynatrace.com/t/multiple-named-entities-when-setting-up-a-metric-event/43482/3 "2024-01-05T20:03:09Z")

</div>

That’s what support also suggested. I was just hoping there was a away exclude a list of entities that have dissimilar names without tags. The services aren’t tagged for me to filter on. It sounds like I have to come up with a strategy to tag them to create the filter.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [January 5, 2024, 8:05pm UTC](https://community.dynatrace.com/t/multiple-named-entities-when-setting-up-a-metric-event/43482/4 "2024-01-05T20:05:13Z")

</div>

Using tags you will get rid of complex queries to maintain.

It is easier to include/exclude an entity to tags than edit a complex metric expression.
