# Log file size increased significantly due to the OneAgent Log Enrichment / Log Injection

**URL:** <https://community.dynatrace.com/t/log-file-size-increased-significantly-due-to-the-oneagent-log-enrichment-log-injection/56817>\
**Category:** Logs\
**Tags:** logs\
**Created:** [August 26, 2026, 1:27pm UTC](https://community.dynatrace.com/t/log-file-size-increased-significantly-due-to-the-oneagent-log-enrichment-log-injection/56817 "2026-08-26T13:27:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanvelezH](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@juanvelezH](https://community.dynatrace.com/u/juanvelezH)\
**Post date:** [August 26, 2026, 1:27pm UTC](https://community.dynatrace.com/t/log-file-size-increased-significantly-due-to-the-oneagent-log-enrichment-log-injection/56817/1 "2026-08-26T13:27:51Z")

</div>

Hi Everyone,

We recently installed OneAgent in a Java application (Pharos) and noticed that the log file size increased significantly (a nohup.out file grew from 1GB to 2.5GB) due to the OneAgent Log Enrichment / Log Injection adding attributes like dt.trace\_id and dt.span\_id into stdout/stderr.

While we understand that this metadata is essential for automatic log-to-trace (PurePath) correlation, the customer is currently facing two major challenges:

Disk Storage Constraints: The extra bytes per log line are causing filesystem capacity issues.

Readability Issues: Developers reading raw logs directly on the server complain that the extra metadata makes manual troubleshooting difficult.

Questions for the community:

Have you faced similar pushback from infrastructure teams due to disk growth caused by Log Injection?

Is disabling log enrichment at the process group level the standard approach when storage is critical, or do you usually recommend setting up server-side logrotate / log retention policies instead?

Are there any other lightweight configurations to limit injection size without losing full trace correlation?

Thanks in advance for your insights!

 ![juanvelezH_0-1787750857506.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/b/eb72f14e88c7a49b59ddd1f0b8d3b786f0917d35.png)

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [August 28, 2026, 8:29am UTC](https://community.dynatrace.com/t/log-file-size-increased-significantly-due-to-the-oneagent-log-enrichment-log-injection/56817/2 "2026-08-28T08:29:56Z")

</div>

Hi&nbsp;[@juanvelezH](https://community.dynatrace.com/user/99496)

Yes, you can disable it at exactly the granularity you need:

Go to Settings → Preferences → OneAgent features, filter for “enrichment,” and disable “Java – Trace/span context enrichment for unstructured logs” (or the equivalent for your log format/technology)

 ![sujit_k_singh_0-1787905749586.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/a/4a42a96a83e766e6652ae2d2f42f20c3f0d22c13.png)

Thanks,

Sujit
