<?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: Filtering all hosts NOT in any host group in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244726#M32176</link>
    <description>&lt;P&gt;Excellent, thanks a lot&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/55395"&gt;@aeric-walls&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 06:42:32 GMT</pubDate>
    <dc:creator>Enrico_F</dc:creator>
    <dc:date>2024-05-03T06:42:32Z</dc:date>
    <item>
      <title>Filtering all hosts NOT in any host group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244605#M32159</link>
      <description>&lt;P&gt;I would like to identify all active hosts in my SaaS environment that are NOT members of any host group e.g. as a list of host names.&lt;/P&gt;&lt;P&gt;What would be the easiest way to achieve this preferably via UI or an entity selector?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 12:58:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244605#M32159</guid>
      <dc:creator>Enrico_F</dc:creator>
      <dc:date>2024-05-02T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering all hosts NOT in any host group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244615#M32164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/7040"&gt;@Enrico_F&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Usually we use Oneagent on a Host API to retrieve all the hosts details including the host group details, then we convert the json to CSV&amp;nbsp;and filter the hosts with empty host group.&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 13:42:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244615#M32164</guid>
      <dc:creator>Esam_Eid</dc:creator>
      <dc:date>2024-05-02T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering all hosts NOT in any host group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244619#M32166</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65475"&gt;@Esam_Eid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping for a solution that doesn't require external filtering of the response, but it looks like there is none (surprisingly).&lt;/P&gt;&lt;P&gt;FWIW: Another workaround that also requires external response filtering would be going through the "Monitored entities" API via an entity selector like "type(HOST)" and filtering the response for hosts with an empty object "fromRelationships.isInstanceOf".&lt;/P&gt;&lt;P&gt;As the "OneAgent on a host" API seems painfully slow even without including the details I prefer using the "Monitored entities" API as a workaround for now (unless someone can suggest a better way).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 14:21:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244619#M32166</guid>
      <dc:creator>Enrico_F</dc:creator>
      <dc:date>2024-05-02T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering all hosts NOT in any host group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244681#M32169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/7040"&gt;@Enrico_F&lt;/a&gt;, I have two ways, with DQL this is very easy to get the list and export to a CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fetch dt.entity.host
| filter isNull(hostGroupName)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'd suggest running this&amp;nbsp;&lt;STRONG&gt;free&lt;/STRONG&gt;&amp;nbsp;DQL query in&amp;nbsp;a notebook and an export to CSV option will appear.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aericwalls_0-1714672661094.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19625i67FFCD1D67E9B1C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aericwalls_0-1714672661094.png" alt="aericwalls_0-1714672661094.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That is all purely UI, no settings changes or API usage. If you're open to creating an auto tag in the UI, you could create a tag that tags hosts without host groups, then with the monitored entities API, use an entity selector like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;type(HOST),tag(no-host-group)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aericwalls_1-1714672817847.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19626i52F89F3384912186/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aericwalls_1-1714672817847.png" alt="aericwalls_1-1714672817847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This was a mix of demo and personal environments, so I've blocked host names, but trust they are there &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 18:09:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244681#M32169</guid>
      <dc:creator>aeric-walls</dc:creator>
      <dc:date>2024-05-02T18:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering all hosts NOT in any host group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244726#M32176</link>
      <description>&lt;P&gt;Excellent, thanks a lot&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/55395"&gt;@aeric-walls&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 06:42:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Filtering-all-hosts-NOT-in-any-host-group/m-p/244726#M32176</guid>
      <dc:creator>Enrico_F</dc:creator>
      <dc:date>2024-05-03T06:42:32Z</dc:date>
    </item>
  </channel>
</rss>

