# DQL to Get specific process in availability monitoring on multiple Host

**URL:** <https://community.dynatrace.com/t/dql-to-get-specific-process-in-availability-monitoring-on-multiple-host/49934>\
**Category:** DQL\
**Tags:** dql, notebooks, infrastructure-operations\
**Created:** [January 27, 2025, 10:53am UTC](https://community.dynatrace.com/t/dql-to-get-specific-process-in-availability-monitoring-on-multiple-host/49934 "2025-01-27T10:53:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dest-Roh](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dest-Roh](https://community.dynatrace.com/u/Dest-Roh)\
**Post date:** [January 27, 2025, 10:53am UTC](https://community.dynatrace.com/t/dql-to-get-specific-process-in-availability-monitoring-on-multiple-host/49934/1 "2025-01-27T10:53:02Z")

</div>

Hi Team,

I have a requirement to pull down a specific process kept in availability monitoring on my environment and wanted to generate a report and gather info that on which machine availability monitoring is enabled for this specific process. Is this possible to get the data from DQL??

EX: Host&nbsp; A, Process xyz --\> getting monitored for availability alerts

Host&nbsp; B, Process xyz --\> getting monitored for availability alerts

Host&nbsp; C, Process xyz --\> Not enabled&nbsp; for availability alerts

---

<div class="post-metadata">

**Author:** ![PiotrG](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@PiotrG](https://community.dynatrace.com/u/PiotrG)\
**Post date:** [March 11, 2025, 12:17pm UTC](https://community.dynatrace.com/t/dql-to-get-specific-process-in-availability-monitoring-on-multiple-host/49934/2 "2025-03-11T12:17:06Z")

</div>

Hey!  
That is not a very straight-forward thing to accomplish, as the process availability monitoring is set through the settings 2.0 and is not a property of a process. There is one thing you could potentially do through DQL - you can look for events that were created when the settings were changed - there is a limitation that you would only be able to get settings that were touched since mid 2024.

Query would look something like this to start with:

```javascript
fetch dt.system.events
| filter event.kind == "AUDIT_EVENT"
| filter event.provider == "SETTINGS"
| filter details.dt.settings.schema_id == "builtin:availability.process-group-alerting"
| sort timestamp desc

```

There you’d be interested in the&nbsp;_ **details.json\_after** _ to see what was the change made (either disabling/enabling)&nbsp;and&nbsp;_ **details.dt.settings.scope\_id** _&nbsp;where you would find the process group that was changed.

Other than that, I believe environment API v2 has an endpoint that could help you accomplish a similar result but it wouldn’t be through DQL.
