# Lot of logs in /opt/dynatrace/oneagent/log/java dir

**URL:** <https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995>\
**Category:** Open Q&A\
**Tags:** linux, oneagent\
**Created:** [March 14, 2019, 9:31am UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995 "2019-03-14T09:31:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![imoskovko1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imoskovko1/32/3573_2.png) [@imoskovko1](https://community.dynatrace.com/u/imoskovko1)\
**Post date:** [March 14, 2019, 9:31am UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995/1 "2019-03-14T09:31:59Z")

</div>

Hello!

Customer noticed lot of log files in

/opt/dynatrace/oneagent/log/java

few example lines are:

-rw-r--r--. 1 root root 23031 Mar 8 13:45  
1-service.jar\_\*\*\*-service-\_\_1(101).0.log

-rw-r--r--. 1 root root 23532 Mar 8 14:02  
ruxitagent\_\*\*\*-service.jar\_\*\*\*-service-\_\_1(102).0.log

-rw-r--r--. 1 root root 23475 Mar 8 14:11  
ruxitagent\_\*\*\*-service.jar\_\*\*\*service-\_\_1(103).0.log

-rw-r--r--. 1 root root 23532 Mar 8 14:28  
ruxitagent\_\*\*\*-service.jar\_\*\*\*-service-\_\_1(104).0.log

-rw-r--r--. 1 root root 23475 Mar 8 14:47  
ruxitagent\_\*\*\*-service.jar\_\*\*\*-service-\_\_1(105).0.log

-rw-r--r--. 1 root root 23532 Mar 8 15:06  
ruxitagent\_\*\*\*-service.jar\_\*\*\*-service-\_\_1(106).0.log

-rw-r--r--. 1 root root 23475 Mar 8 15:20  
ruxitagent\_\*\*\*-service.jar\_\*\*\*-service-\_\_1(107).0.log

-rw-r--r--. 1 root root 23532 Mar 8 15:33  
ruxitagent\_\*\*\*-service.jar\_\*\*\*-service-\_\_1(108).0.log

What is is and how to suppress it generation or rotate?

Regards,

Igor

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [March 14, 2019, 9:42am UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995/2 "2019-03-14T09:42:06Z")

</div>

These are logs from oneagent residing in a java process. As soon as it starts, it gets instrumented and log will be created. If it is a process you don’t want to monitor, just set this up in Dynatrace either for this process group or setup a deep monitoring rule to skip monitoring of the avtocod-service processes. If this is not a one shot process starting every few minutes, then look at the contents of the log (you can download the logs using “Download support archive” for the host in the menu).

Oneagent does log rotation and pruning, so you won’t run out of space.

---

<div class="post-metadata">

**Author:** ![imoskovko1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imoskovko1/32/3573_2.png) [@imoskovko1](https://community.dynatrace.com/u/imoskovko1)\
**Post date:** [March 14, 2019, 10:04am UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995/3 "2019-03-14T10:04:41Z")

</div>

Thank you Julius! We will take close look at file contents and creation dynamics…

---

<div class="post-metadata">

**Author:** ![imoskovko1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imoskovko1/32/3573_2.png) [@imoskovko1](https://community.dynatrace.com/u/imoskovko1)\
**Post date:** [March 14, 2019, 10:56am UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995/4 "2019-03-14T10:56:10Z")

</div>

Actually customer clarified details

In OpenShift pod of service-aggregator service

there are log files from other pods services:

_ruxitagent\_ **jdbc-adapter**.jar\_jdbc-adapter-\*\*\*\*-ro-\_\_1.0.log_

_ruxitagent\_ **\*\*\*\*-mobile-\*\*\*\*** -service.jar\_\*\*\*\*-mobile-\*\*\*\*-service-\_\_1.0.log_

_ruxitagent\_ **filestore-service**.jar\_filestore-service-\_\_1.0.log_

_ruxitagent\_ **\*\*\*\*-service**.jar\_\*\*\*\*-service-\_\_1(191).0.log_

and it looks incorrect.

\*\*\*\* i have masked some names …

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [March 14, 2019, 12:35pm UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995/5 "2019-03-14T12:35:28Z")

</div>

That’s correct I believe since the Oneagent is in fact installed on the host where containers are running (although running in a container). The agent folders are shared between all processes on the host → thus logs from processes from other pods running on the same host will appear.

---

<div class="post-metadata">

**Author:** ![imoskovko1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imoskovko1/32/3573_2.png) [@imoskovko1](https://community.dynatrace.com/u/imoskovko1)\
**Post date:** [March 15, 2019, 9:23am UTC](https://community.dynatrace.com/t/lot-of-logs-in-opt-dynatrace-oneagent-log-java-dir/19995/6 "2019-03-15T09:23:46Z")

</div>

Hello Julius. After discussing proposed by you explanation with customer he accepted it. Thank you very much for help!

Best regards, Igor

p.s.

Also found usefull discussion :

> **[Deploy OneAgent as a container](https://community.dynatrace.com/t5/Container-platforms/Deploy-OneAgent-as-a-container/m-p/23163)**
>
> Is there any way to deploy OneAgent as a container? We have tried but it seems not to be able to monitor other containers. If it's not currently possible, is this feature part of the roadmap? Our policy is try to avoid the installation of anything...

_«despite running in the container all of the oneagent files are actually placed on the host’s filesystem, not in a filesystem of the container"_
