<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DQL for gathering all hosts in a specific environment in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279134#M2193</link>
    <description>&lt;P&gt;What do you mean by environment? Are you referring to a specific Management Zone or Segment, or something else?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just looking to collect all hosts in your entire Dynatrace tenant you can run "fetch dt.entity.host" and it will return all hosts with the default fields of "entity.name" and "id".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2025 14:00:02 GMT</pubDate>
    <dc:creator>StrangerThing</dc:creator>
    <dc:date>2025-06-11T14:00:02Z</dc:date>
    <item>
      <title>DQL for gathering all hosts in a specific environment</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279130#M2192</link>
      <description>&lt;P&gt;I'm trying to gather all the hosts but only this specific environment. What would be a good DQL for that?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 13:27:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279130#M2192</guid>
      <dc:creator>nq44</dc:creator>
      <dc:date>2025-06-11T13:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: DQL for gathering all hosts in a specific environment</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279134#M2193</link>
      <description>&lt;P&gt;What do you mean by environment? Are you referring to a specific Management Zone or Segment, or something else?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just looking to collect all hosts in your entire Dynatrace tenant you can run "fetch dt.entity.host" and it will return all hosts with the default fields of "entity.name" and "id".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 14:00:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279134#M2193</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-06-11T14:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: DQL for gathering all hosts in a specific environment</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279164#M2194</link>
      <description>&lt;P&gt;I'm not entirely sure of the specific field or attribute you're looking for when you say "Environment", but my organization embeds the environment name in the host group name, so you can try to filter on the "hostGroupName" field. You can also try to filter on tags in case the value you're looking for is included in the tags.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| fieldsAdd hostGroupName, tags
// you can filter for the "environment" like so:
| filter contains(tags, "YOUR_ENV", caseSensitive:false)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 18:10:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-for-gathering-all-hosts-in-a-specific-environment/m-p/279164#M2194</guid>
      <dc:creator>TracingMySanity</dc:creator>
      <dc:date>2025-06-11T18:10:29Z</dc:date>
    </item>
  </channel>
</rss>

