# Looking for DQL to discover maintenance window settings

**URL:** <https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199>\
**Category:** DQL\
**Tags:** dql\
**Created:** [November 25, 2025, 1:47pm UTC](https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199 "2025-11-25T13:47:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rseibert1](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rseibert1](https://community.dynatrace.com/u/rseibert1)\
**Post date:** [November 25, 2025, 1:47pm UTC](https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199/1 "2025-11-25T13:47:06Z")

</div>

Not seeing an ability to query DQL for the maintenance windows that are currently active, besides which entities the window effects. We currently have a workflow that creates new windows but does not activate them (user triggered) so observability team can verify the window looks good and then just through the slider to Active. The trouble with that is I see no way to query to verify this action had taken place.

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [November 26, 2025, 12:14am UTC](https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199/2 "2025-11-26T00:14:11Z")

</div>

[@rseibert1](https://community.dynatrace.com/user/77155)&nbsp;Can you try the below DQL ?

Take a look at the “details.json\_before” and “details.json\_after” fields . These would have the info you are after

Hope this helps

```markup
fetch dt.system.events
| filter event.kind == "AUDIT_EVENT"
  and event.provider == "SETTINGS"
  and matchesPhrase(details.dt.settings.schema_id, "builtin:alerting.maintenance-window")

```

---

<div class="post-metadata">

**Author:** ![rseibert1](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rseibert1](https://community.dynatrace.com/u/rseibert1)\
**Post date:** [December 10, 2025, 9:30am UTC](https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199/3 "2025-12-10T09:30:11Z")

</div>

Thanks for this insight, I knew there had to be a way!
