# Entity\_tags DQL

**URL:** <https://community.dynatrace.com/t/entity-tags-dql/51689>\
**Category:** DQL\
**Tags:** dql\
**Created:** [May 19, 2025, 11:29am UTC](https://community.dynatrace.com/t/entity-tags-dql/51689 "2025-05-19T11:29:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo2](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Pablo2](https://community.dynatrace.com/u/Pablo2)\
**Post date:** [May 19, 2025, 11:29am UTC](https://community.dynatrace.com/t/entity-tags-dql/51689/1 "2025-05-19T11:29:25Z")

</div>

I have a dashboard that shows the problems that arrive to a specific alerting profile.  
The problem is that this alerting profile receives problems from several hosts and I would like to see to which host corresponds each problem, each host has a tag with the host name.  
I’m trying to show the entity\_tag field only with that host tag but I get all the tags, I don’t know how to solve it.

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 19, 2025, 11:56am UTC](https://community.dynatrace.com/t/entity-tags-dql/51689/2 "2025-05-19T11:56:50Z")

</div>

You can find all the details to accessing tags on entities here&nbsp;[Query monitored entities in Grail — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/grail-querying-monitored-entities#entity-tags)

For your case something like this should do the trick

```markup
fetch dt.entity.host
| expand tags, alias:tag_string
| parse tag_string, """(('['LD:tag_context ']' LD:tag_key (!<<'\\' ':') LD:tag_value)|(LD:tag_key (!<<'\\' ':') LD:tag_value)|LD:tag_key)"""
| filter tag_key == "entity_tag"

```
