# Automatic tag on custom device based on "issameis" OneAgent Host placeholder

**URL:** <https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, tagging\
**Created:** [August 19, 2025, 1:28pm UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019 "2025-08-19T13:28:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolasT123](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nicolasT123](https://community.dynatrace.com/u/nicolasT123)\
**Post date:** [August 19, 2025, 1:28pm UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019/1 "2025-08-19T13:28:00Z")

</div>

Hello,

I am on a managed cluster.

I use the PostgreSQL native extension.

It creates two differents CUSTOM\_DEVICE for one Databases servers.

I got the OneAgent installed installed and can see on the custom\_device that it attachs the real monitored host.

On my host, I got properties.

How could I create a automatic tag value on the Custom device, based on a OA host property value like

“{Host:Environment:myenv}”

And associate to the Custom\_device entity selector :

I tried this without success :

type(CUSTOM\_DEVICE),fromRelationships.issameas(type(“HOST”))

Is it possible to inherit a placeholder value from a different entity type ?

Thanks in advance.

---

<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 19, 2025, 7:20pm UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019/2 "2025-08-19T19:20:51Z")

</div>

Hi,

I would say transform that host property in a tag in host level, using automatic tagging rules. And later, propagate tag from host to custom device.

You need to check topology to understand how custom device is linked to host:

 ![AntonPineiro_0-1755631134752.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/4/b421b7d9ed98363f2c6be21ea9e3cc43cfc023a6.png)

You can try to create a tagging rule, using entity selector, using “run\_as” to “sql:postgres\_host”.

Best regards

---

<div class="post-metadata">

**Author:** ![nicolasT123](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nicolasT123](https://community.dynatrace.com/u/nicolasT123)\
**Post date:** [August 20, 2025, 7:33am UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019/3 "2025-08-20T07:33:26Z")

</div>

Hello, I was able to create the good entity selector :

_type(sql:postgres\_host),fromRelationships.issameas(type(“HOST”))_

The display entities is able to catch my host.. But the placeholder&nbsp;_“{Host:Environment:myenv}”_ is not translated to its value and remains "raw : _{Host:Environment:myenv}"_&nbsp;on the custom devices tag :

 ![nicolasT123_0-1755675150547.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/2/d2202ef46da6624ac911af0520350d4f37bfe96c.png)

(here another example screenshot but the philosophy is here)

precision : My metadata (host properties) is working fine because I use it to propagate tags from values to process groups and services.

What do you mean by propagate from “host tags” to “custom devices” tags ? You mean manually ? Or is there a way to make it automatic ?

If manual, any new configuration of the extension will have to be followed by a manual tag propagation which is not smart at all.

Thanks for your help.

Best regards.

---

<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 20, 2025, 11:55am UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019/4 "2025-08-20T11:55:57Z")

</div>

Hi,

It means manually. Imagine you have tag “X”. Then you can use "_type(sql:postgres\_host),fromRelationships.issameas(type(“HOST”),tag(“X”))"_&nbsp;as selector to new tagging rule.

[This product idea](https://community.dynatrace.com/post/283987) is to avoid manual stuff. It would be good if those tags are autopropagated to custom devices as default.

Best regards

---

<div class="post-metadata">

**Author:** ![parkash\_jha\_746](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@parkash\_jha\_746](https://community.dynatrace.com/u/parkash_jha_746)\
**Post date:** [September 23, 2025, 2:46pm UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019/5 "2025-09-23T14:46:12Z")

</div>

Hi&nbsp;[@AntonPineiro](https://community.dynatrace.com/user/58682)&nbsp;,

We are trying to tag our OS service custom device with hostname for e.g.&nbsp;(host: \<hostname\>).

We have the hostname available on the metadata of the OS service however we are not able to write a query of entity selector which can tag the custom device with hostname. Could you please help on this.

**Regards,**

**Parkash**

---

<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:** [September 23, 2025, 2:50pm UTC](https://community.dynatrace.com/t/automatic-tag-on-custom-device-based-on-issameis-oneagent-host-placeholder/53019/6 "2025-09-23T14:50:00Z")

</div>

Hi,

You can follow [this approach](https://community.dynatrace.com/post/282510).

Best regards
