<?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 OS Service Availability showing no records in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281426#M2299</link>
    <description>&lt;P&gt;Im trying to retrieve OS Services in our environment - using the example DQL from the documentation: &lt;A href="https://docs.dynatrace.com/docs/observe/infrastructure-monitoring/hosts/monitoring/os-services#expand--advanced-alerting-service-availability-metric--2" target="_self"&gt;here&lt;/A&gt;&lt;BR /&gt;I get no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="troymaxwell_0-1752261505164.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28985i13756840A9C74EB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="troymaxwell_0-1752261505164.png" alt="troymaxwell_0-1752261505164.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Our OS Service monitoring is working as our monitors are alerting correctly but it would be extremely helpful if i could use DQL to find all running services on a host and their status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the following DQL I am able to retrieve Service Display names on a host but I cannot / dont know how to get the actual status of the service and the service name, not just the Display name, I would like to get the actual name of the windows service aswell.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;fetch `dt.entity.os:service`
| fieldsAdd dt.entity.host=runs_on[dt.entity.host]
| fieldsAdd host_name = entityName(dt.entity.host) // Add the host name
| summarize host_names = collectArray(host_name), by:{id, entity.name}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some setting to make dt.osservice.availabilty gather data? or am I missing something here?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 19:26:45 GMT</pubDate>
    <dc:creator>Troy</dc:creator>
    <dc:date>2025-07-11T19:26:45Z</dc:date>
    <item>
      <title>OS Service Availability showing no records</title>
      <link>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281426#M2299</link>
      <description>&lt;P&gt;Im trying to retrieve OS Services in our environment - using the example DQL from the documentation: &lt;A href="https://docs.dynatrace.com/docs/observe/infrastructure-monitoring/hosts/monitoring/os-services#expand--advanced-alerting-service-availability-metric--2" target="_self"&gt;here&lt;/A&gt;&lt;BR /&gt;I get no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="troymaxwell_0-1752261505164.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28985i13756840A9C74EB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="troymaxwell_0-1752261505164.png" alt="troymaxwell_0-1752261505164.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Our OS Service monitoring is working as our monitors are alerting correctly but it would be extremely helpful if i could use DQL to find all running services on a host and their status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the following DQL I am able to retrieve Service Display names on a host but I cannot / dont know how to get the actual status of the service and the service name, not just the Display name, I would like to get the actual name of the windows service aswell.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;fetch `dt.entity.os:service`
| fieldsAdd dt.entity.host=runs_on[dt.entity.host]
| fieldsAdd host_name = entityName(dt.entity.host) // Add the host name
| summarize host_names = collectArray(host_name), by:{id, entity.name}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some setting to make dt.osservice.availabilty gather data? or am I missing something here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 19:26:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281426#M2299</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-07-11T19:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: OS Service Availability showing no records</title>
      <link>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281432#M2302</link>
      <description>&lt;P&gt;Hi Troy,&lt;/P&gt;&lt;P&gt;If you are trying to&lt;SPAN&gt;&amp;nbsp;retrieve OS Services in your environment use this query:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fetch dt.entity.host
| fieldsAdd osServices, state
| expand osServices
| parse osServices, """LD 'dt.osservice.name=' LD:"OS Service" ',' LD 'dt.osservice.status=' LD:Status ','"""
| fields `Host Name` = entity.name, id, state, `OS Service`, Status&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if this helps you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 21:02:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281432#M2302</guid>
      <dc:creator>Emm4nuel</dc:creator>
      <dc:date>2025-07-11T21:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: OS Service Availability showing no records</title>
      <link>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281435#M2303</link>
      <description>&lt;P&gt;Works beautifully thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 22:45:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/OS-Service-Availability-showing-no-records/m-p/281435#M2303</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-07-11T22:45:55Z</dc:date>
    </item>
  </channel>
</rss>

