# Show in with DQL or entity selector the hosts of a service

**URL:** <https://community.dynatrace.com/t/show-in-with-dql-or-entity-selector-the-hosts-of-a-service/48638>\
**Category:** DQL\
**Tags:** dql\
**Created:** [October 30, 2024, 2:53pm UTC](https://community.dynatrace.com/t/show-in-with-dql-or-entity-selector-the-hosts-of-a-service/48638 "2024-10-30T14:53:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pabloabad](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@Pabloabad](https://community.dynatrace.com/u/Pabloabad)\
**Post date:** [October 30, 2024, 2:53pm UTC](https://community.dynatrace.com/t/show-in-with-dql-or-entity-selector-the-hosts-of-a-service/48638/1 "2024-10-30T14:53:52Z")

</div>

I need to pull up all the hosts that are running on a specific service but I am not able to pull it up through dql.

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 30, 2024, 11:00pm UTC](https://community.dynatrace.com/t/show-in-with-dql-or-entity-selector-the-hosts-of-a-service/48638/2 "2024-10-30T23:00:54Z")

</div>

[@Pabloabad](https://community.dynatrace.com/user/69548)&nbsp;, here is a example DQL you can use

```markup
fetch dt.entity.process_group_instance
| fieldsAdd entity.name, runs[dt.entity.service], belongs_to[dt.entity.host]
| filter isNotNull(runs[dt.entity.service])

```
