<?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 query to fetch hosts via ostype in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254863#M1168</link>
    <description>&lt;P&gt;See if this gets close to what you are asking for.&lt;BR /&gt;&lt;BR /&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd hostGroupName, Host=entity.name, entity.type, osType, state, monitoringMode&lt;BR /&gt;| filter entity.type == "HOST" and state == "RUNNING"&lt;BR /&gt;| fieldsRemove entity.type, state&lt;BR /&gt;| sort hostGroupName, Host&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 19:29:40 GMT</pubDate>
    <dc:creator>Robert_Conatser</dc:creator>
    <dc:date>2024-09-03T19:29:40Z</dc:date>
    <item>
      <title>DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254841#M1167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to DQL query stuff, can anyone tell me the query to use to fetch the hostgroups which have hosts running on ostype like linux and windows and also along with monitoringmode they are configured on ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 15:35:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254841#M1167</guid>
      <dc:creator>huzoor</dc:creator>
      <dc:date>2024-09-03T15:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254863#M1168</link>
      <description>&lt;P&gt;See if this gets close to what you are asking for.&lt;BR /&gt;&lt;BR /&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd hostGroupName, Host=entity.name, entity.type, osType, state, monitoringMode&lt;BR /&gt;| filter entity.type == "HOST" and state == "RUNNING"&lt;BR /&gt;| fieldsRemove entity.type, state&lt;BR /&gt;| sort hostGroupName, Host&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 19:29:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254863#M1168</guid>
      <dc:creator>Robert_Conatser</dc:creator>
      <dc:date>2024-09-03T19:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254865#M1169</link>
      <description>&lt;P&gt;thank you so much, can you let me know how to filterout ec2 instances?&amp;nbsp; and also how to avoid names that has "db" in them&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 19:47:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254865#M1169</guid>
      <dc:creator>huzoor</dc:creator>
      <dc:date>2024-09-03T19:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254867#M1170</link>
      <description>&lt;P&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd hostGroupName, Host=entity.name, entity.type, osType, state, monitoringMode, &lt;STRONG&gt;cloudType&lt;/STRONG&gt;&lt;BR /&gt;| filter entity.type == "HOST" and state == "RUNNING" &lt;STRONG&gt;and cloudType != "EC2" and NOT contains(Host,"db")&lt;/STRONG&gt;&lt;BR /&gt;| fieldsRemove entity.type, state&lt;BR /&gt;| sort hostGroupName, Host&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:00:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254867#M1170</guid>
      <dc:creator>Robert_Conatser</dc:creator>
      <dc:date>2024-09-03T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254868#M1171</link>
      <description>&lt;P&gt;I did try the above one before as well, its not fetching any records.. without the cloudtype boolean.. it does fetch all EC2 instance but when we include that it is not.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:05:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254868#M1171</guid>
      <dc:creator>huzoor</dc:creator>
      <dc:date>2024-09-03T20:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254869#M1172</link>
      <description>&lt;P&gt;Try this one.&amp;nbsp; It seem that it was filtering out the ones with null. (not sure way).&lt;BR /&gt;&lt;BR /&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd hostGroupName, Host=entity.name, entity.type, osType, state, monitoringMode, cloudType&lt;BR /&gt;| filter entity.type == "HOST" and state == "RUNNING" and (cloudType != "EC2" or isNull(cloudType)) and NOT contains(Host,"db")&lt;BR /&gt;| fieldsRemove entity.type, state&lt;BR /&gt;| sort cloudType, hostGroupName, Host&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:16:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254869#M1172</guid>
      <dc:creator>Robert_Conatser</dc:creator>
      <dc:date>2024-09-03T20:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254870#M1173</link>
      <description>&lt;P&gt;you are awesome, thank you so much ..&amp;nbsp; if you can guide me for knowledge guide on how to fetch all these details would be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:19:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254870#M1173</guid>
      <dc:creator>huzoor</dc:creator>
      <dc:date>2024-09-03T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: DQL query to fetch hosts via ostype</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254871#M1174</link>
      <description>&lt;P&gt;Better solution (too many "Not", "and" and "or" &lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd hostGroupName, Host=entity.name, entity.type, osType, state, monitoringMode, cloudType&lt;BR /&gt;| filter entity.type == "HOST" and state == "RUNNING"&lt;BR /&gt;| filterOut cloudType == "EC2" or contains(Host,"db")&lt;BR /&gt;| fieldsRemove entity.type, state&lt;BR /&gt;| sort hostGroupName, Host&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:29:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-query-to-fetch-hosts-via-ostype/m-p/254871#M1174</guid>
      <dc:creator>Robert_Conatser</dc:creator>
      <dc:date>2024-09-03T20:29:43Z</dc:date>
    </item>
  </channel>
</rss>

