# Automatic ingestion of OneAgent Logs into Grail

**URL:** <https://community.dynatrace.com/t/automatic-ingestion-of-oneagent-logs-into-grail/39292>\
**Category:** Logs\
**Tags:** log-monitoring-class, oneagent\
**Created:** [April 13, 2023, 3:27pm UTC](https://community.dynatrace.com/t/automatic-ingestion-of-oneagent-logs-into-grail/39292 "2023-04-13T15:27:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![D\_Miller](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/d_miller/32/22229_2.png) [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Post date:** [April 13, 2023, 3:27pm UTC](https://community.dynatrace.com/t/automatic-ingestion-of-oneagent-logs-into-grail/39292/1 "2023-04-13T15:27:02Z")

</div>

Hello,

Is it on the roadmap for the OneAgent logs to be ingested into Dynatrace so they can be queried in Grail via DQL? This is instead of having to pulling a Support Archive and manually search through the multiple logs.

This then also has the advantage of seeing the last log entries even if the Host is offline due to an issue with the Host or Agent.

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [April 13, 2023, 8:30pm UTC](https://community.dynatrace.com/t/automatic-ingestion-of-oneagent-logs-into-grail/39292/2 "2023-04-13T20:30:05Z")

</div>

Hi&nbsp;[@D\_Miller](https://community.dynatrace.com/user/27192)&nbsp;!

You can do it. You have to enable&nbsp; **Allow OneAgent to monitor OneAgent logs** in the host settings :

 ![jegron_0-1681417448194.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/9/a90fef4bf8a5f24257b8ad29cd164ba5b256d675.png)

Then add the path to custom log source configuration ([Custom log source (Logs Classic) — Dynatrace Docs](https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/acquire-log-data/log-custom-source)) and storage configuration ([Log ingest rules (Logs Classic) — Dynatrace Docs](https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/acquire-log-data/log-storage)).

But be careful oneagent log is verbose 🙂 #ddu
