# Export OneAgent Health Data Using DQL Queries

**URL:** <https://community.dynatrace.com/t/export-oneagent-health-data-using-dql-queries/50507>\
**Category:** DQL\
**Tags:** dql, oneagent, health, dynatrace-api\
**Created:** [February 28, 2025, 2:44pm UTC](https://community.dynatrace.com/t/export-oneagent-health-data-using-dql-queries/50507 "2025-02-28T14:44:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [February 28, 2025, 2:44pm UTC](https://community.dynatrace.com/t/export-oneagent-health-data-using-dql-queries/50507/1 "2025-02-28T14:44:56Z")

</div>

Hi,

Is it possible to get the results of Oneagent Health on a DQL query?

I mean this page:  
[OneAgent health overview — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-health)

I found that the Env V2 API, monitoringstate does it. (Correct me if wrong)

 ![vishnu_kumar_0-1740753632432.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0893148d83763d52391f7a6c631a40e4e2e6aa0b.png)

For some reason, this API returns even healthy entities, even though I set the entitySelector like:

```auto
type("PROCESS_GROUP_INSTANCE"),healthState("UNHEALTHY")

```

Maybe am querying the API wrongly.

Let me know if its possible on DQL.

Regards,  
Vishnu

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [March 4, 2025, 11:00am UTC](https://community.dynatrace.com/t/export-oneagent-health-data-using-dql-queries/50507/2 "2025-03-04T11:00:01Z")

</div>

can anyone help me with this query?

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [April 11, 2025, 12:50pm UTC](https://community.dynatrace.com/t/export-oneagent-health-data-using-dql-queries/50507/3 "2025-04-11T12:50:25Z")

</div>

In case anyone looking for same info, there is option to export the data at the bottom of the page.  
Looks like:

 ![vishnu_kumar_0-1744375779564.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/9/099ca42fb34d4332af3b31403709328ff1b938ec.png)

Only allowed 1000 entries, so had to add filters to reduce the count and then export

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 18, 2025, 12:22pm UTC](https://community.dynatrace.com/t/export-oneagent-health-data-using-dql-queries/50507/4 "2025-12-18T12:22:13Z")

</div>

Thank you for sharing your&nbsp;solution with the rest of our Community,&nbsp;@vishnu_kumar!&nbsp;:blush:
