# Why is Oneagent with service disabled still writing logs to /var/log/dynatrace/oneagent/process?

**URL:** <https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705>\
**Category:** Logs\
**Tags:** log-monitoring-class, oneagent, hosts-classic\
**Created:** [September 29, 2022, 8:33am UTC](https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705 "2022-09-29T08:33:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nunosousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nunosousa/32/19659_2.png) [@nunosousa](https://community.dynatrace.com/u/nunosousa)\
**Post date:** [September 29, 2022, 8:33am UTC](https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705/1 "2022-09-29T08:33:41Z")

</div>

Dears,

I have Oneagent with the service disabled on a Linux server but it has logs that continue to be written in /var/log/dynatrace/oneagent/process and a file in a day is close to 500MB, it creates files with the name ruxitagentproc\<date\> .log.

Could you help to understand why there are still logs even with Oneagent turned off?

---

<div class="post-metadata">

**Author:** ![rgarzon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rgarzon1/32/11844_2.png) [@rgarzon1](https://community.dynatrace.com/u/rgarzon1)\
**Post date:** [September 30, 2022, 6:03pm UTC](https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705/2 "2022-09-30T18:03:04Z")

</div>

Hi nunosousa

as far i know, when you disable the agent from the&nbsp; UI, the agent enters a state of hearbeat mode, waiting&nbsp; to be enable wherever it comes.

this does not mean that the agent is stoped or turning off.&nbsp; &nbsp;[Start/Stop Agent linux](https://www.dynatrace.com/support/help/shortlink/stop-restart-oneagent-linux#stop-oneagent-using-the-command-line)

when the agent its on heartbeat mode, the agent&nbsp;still takes care of knowing what is running inside the server and waiting to be reactivated, that’s why the logs, as far as I know.

Regards

---

<div class="post-metadata">

**Author:** ![willnix](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@willnix](https://community.dynatrace.com/u/willnix)\
**Post date:** [April 27, 2023, 7:47pm UTC](https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705/3 "2023-04-27T19:47:26Z")

</div>

How do you stop the heartbeat?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 27, 2023, 10:20pm UTC](https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705/4 "2023-04-27T22:20:58Z")

</div>

Hi,

Is OneAgent service stopped from SO&nbsp;perspective? If not, you can try to stop it following link provided by&nbsp;[@rgarzon1](https://community.dynatrace.com/user/51579).

Best regards

---

<div class="post-metadata">

**Author:** ![SachinJindal](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@SachinJindal](https://community.dynatrace.com/u/SachinJindal)\
**Post date:** [October 20, 2023, 11:23am UTC](https://community.dynatrace.com/t/why-is-oneagent-with-service-disabled-still-writing-logs-to-var-log-dynatrace-oneagent-process/36705/5 "2023-10-20T11:23:03Z")

</div>

is this issue resolved? i have encountered into&nbsp; the same situation…
