# DQL query to fetch hosts via ostype

**URL:** <https://community.dynatrace.com/t/dql-query-to-fetch-hosts-via-ostype/47457>\
**Category:** DQL\
**Tags:** dql\
**Created:** [September 3, 2024, 3:35pm UTC](https://community.dynatrace.com/t/dql-query-to-fetch-hosts-via-ostype/47457 "2024-09-03T15:35:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![huzoor](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@huzoor](https://community.dynatrace.com/u/huzoor)\
**Post date:** [September 3, 2024, 7:47pm UTC](https://community.dynatrace.com/t/dql-query-to-fetch-hosts-via-ostype/47457/3 "2024-09-03T19:47:11Z")

</div>

thank you so much, can you let me know how to filterout ec2 instances?&nbsp; and also how to avoid names that has “db” in them

---

_[View the full topic](https://community.dynatrace.com/t/dql-query-to-fetch-hosts-via-ostype/47457)._
