# Auto tags for OS services

**URL:** <https://community.dynatrace.com/t/auto-tags-for-os-services/52695>\
**Category:** Open Q&A\
**Tags:** tagging\
**Created:** [July 29, 2025, 1:11pm UTC](https://community.dynatrace.com/t/auto-tags-for-os-services/52695 "2025-07-29T13:11:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himavanth\_Reddy](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/himavanth_reddy/32/23761_2.png) [@Himavanth\_Reddy](https://community.dynatrace.com/u/Himavanth_Reddy)\
**Post date:** [July 29, 2025, 1:11pm UTC](https://community.dynatrace.com/t/auto-tags-for-os-services/52695/1 "2025-07-29T13:11:02Z")

</div>

Hi,

I trying to apply tags on OS Services like:  
for os services running on host abc the tag should be “host: abc” which is usually achievable for processes and services but for entity selector based rules the place holder is not available.

Is there any other way, by which I can achieve this?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 30, 2025, 7:44am UTC](https://community.dynatrace.com/t/auto-tags-for-os-services/52695/2 "2025-07-30T07:44:40Z")

</div>

Hi,

You can create a rule using entity selector:

```markup
type(os:service),fromRelationship.runs_on(type(host),tag(XXXX))

```

Best regards

---

<div class="post-metadata">

**Author:** ![Himavanth\_Reddy](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/himavanth_reddy/32/23761_2.png) [@Himavanth\_Reddy](https://community.dynatrace.com/u/Himavanth_Reddy)\
**Post date:** [July 31, 2025, 4:14pm UTC](https://community.dynatrace.com/t/auto-tags-for-os-services/52695/3 "2025-07-31T16:14:23Z")

</div>

I have already tried this, the problem here is only one value will be applied to all the OS Services running on the hosts having that tag but I want the value to be dynamic based on host name and place holders are not applicable for entity selector based rules&nbsp;😐

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [August 1, 2025, 7:12am UTC](https://community.dynatrace.com/t/auto-tags-for-os-services/52695/4 "2025-08-01T07:12:38Z")

</div>

Hi,

I would say using API / Monaco / Workflows for automation. When a host is onboarded, a script will create that tagging rule.

Best regards
