# Autotagging process groups on a specific hosts

**URL:** <https://community.dynatrace.com/t/autotagging-process-groups-on-a-specific-hosts/50399>\
**Category:** Open Q&A\
**Tags:** tagging, process-groups, processes\
**Created:** [February 21, 2025, 8:56pm UTC](https://community.dynatrace.com/t/autotagging-process-groups-on-a-specific-hosts/50399 "2025-02-21T20:56:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olegus](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@olegus](https://community.dynatrace.com/u/olegus)\
**Post date:** [February 21, 2025, 8:56pm UTC](https://community.dynatrace.com/t/autotagging-process-groups-on-a-specific-hosts/50399/1 "2025-02-21T20:56:00Z")

</div>

Lets say I have 100 hosts in a management zone and I need to add a tag to several IIS processes running only on a specific hosts with a name pattern (“important-iis-host\*”). Is it possible to achieve?

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [February 21, 2025, 10:21pm UTC](https://community.dynatrace.com/t/autotagging-process-groups-on-a-specific-hosts/50399/2 "2025-02-21T22:21:41Z")

</div>

I believe you could add an auto-tagging rule with a host name condition, as shown in the screenshot snippet below.

 ![marco_irmer_0-1740176453604.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/513374ab7c327f0dcb659b2c78a3e53877cb0d63.png)

---

<div class="post-metadata">

**Author:** ![olegus](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@olegus](https://community.dynatrace.com/u/olegus)\
**Post date:** [February 24, 2025, 8:45pm UTC](https://community.dynatrace.com/t/autotagging-process-groups-on-a-specific-hosts/50399/3 "2025-02-24T20:45:23Z")

</div>

I have a couple more questions -

- can I control how conditions are combined? By default it is AND, can I combine them by OR or should I create new rule for this? I need to grab several process groups from the same host.

- I use Process group name in my condition and I see each process appears twice - as a Process and a Process group. It is probably OK for tagging but I wonder if I’m doing smth wrong here.

---

<div class="post-metadata">

**Author:** ![olegus](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@olegus](https://community.dynatrace.com/u/olegus)\
**Post date:** [February 25, 2025, 6:25pm UTC](https://community.dynatrace.com/t/autotagging-process-groups-on-a-specific-hosts/50399/4 "2025-02-25T18:25:15Z")

</div>

After some trials and errors the best solution for my case - tagging only specific processes on a specific host is this:  
- use EntitySelector instead of Monitoring Entities

- create a rule per host if you need to separate by host smth like this

type(PROCESS\_GROUP\_INSTANCE),entityName.in(process1,process2,process3,),fromRelationships.IsProcessOf(type(HOST),entityName(host1))
