# OS Service Availability showing no records

**URL:** <https://community.dynatrace.com/t/os-service-availability-showing-no-records/52453>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed\
**Created:** [July 11, 2025, 7:25pm UTC](https://community.dynatrace.com/t/os-service-availability-showing-no-records/52453 "2025-07-11T19:25:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troy](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@Troy](https://community.dynatrace.com/u/Troy)\
**Post date:** [July 11, 2025, 7:25pm UTC](https://community.dynatrace.com/t/os-service-availability-showing-no-records/52453/1 "2025-07-11T19:25:07Z")

</div>

Im trying to retrieve OS Services in our environment - using the example DQL from the documentation: [here](https://docs.dynatrace.com/docs/observe/infrastructure-monitoring/hosts/monitoring/os-services#expand--advanced-alerting-service-availability-metric--2)  
I get no results.

 ![troymaxwell_0-1752261505164.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/50b88466f8d0ca437c07aeb78033e652c997af28.png)

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.

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.

```c
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}

```

Is there some setting to make dt.osservice.availabilty gather data? or am I missing something here?

---

<div class="post-metadata">

**Author:** ![Emm4nuel](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@Emm4nuel](https://community.dynatrace.com/u/Emm4nuel)\
**Post date:** [July 11, 2025, 9:02pm UTC](https://community.dynatrace.com/t/os-service-availability-showing-no-records/52453/2 "2025-07-11T21:02:26Z")

</div>

Hi Troy,

If you are trying to&nbsp;retrieve OS Services in your environment use this query:

```javascript
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

```

Let me know if this helps you!

---

<div class="post-metadata">

**Author:** ![Troy](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@Troy](https://community.dynatrace.com/u/Troy)\
**Post date:** [July 11, 2025, 10:45pm UTC](https://community.dynatrace.com/t/os-service-availability-showing-no-records/52453/3 "2025-07-11T22:45:55Z")

</div>

Works beautifully thank you!
