# Can I change the default OneAgent log directory on installation\\working?

**URL:** <https://community.dynatrace.com/t/can-i-change-the-default-oneagent-log-directory-on-installation-working/20713>\
**Category:** Dynatrace Managed\
**Tags:** installation, dynatrace-managed, oneagent\
**Created:** [May 20, 2019, 2:42pm UTC](https://community.dynatrace.com/t/can-i-change-the-default-oneagent-log-directory-on-installation-working/20713 "2019-05-20T14:42:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [May 20, 2019, 2:42pm UTC](https://community.dynatrace.com/t/can-i-change-the-default-oneagent-log-directory-on-installation-working/20713/1 "2019-05-20T14:42:03Z")

</div>

Hello.

I want to customize installation of my OneAgent.

I can change the installation directory with the parameter: **`INSTALL_PATH`** → /monitoring/

How can I change log directory default - /var/log/dynatrace to /monitoring/log/

Is it possible or not?

I searched the forum and find [this](https://community.dynatrace.com/post/46456) topic? Any updates?

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [May 20, 2019, 8:13pm UTC](https://community.dynatrace.com/t/can-i-change-the-default-oneagent-log-directory-on-installation-working/20713/2 "2019-05-20T20:13:56Z")

</div>

There is no update for this. The only idea I have (and tested) is overwrite log directory with symbolic link to path of your choice, but this can be done manual only (or via ansible). So it cannot be done during installation.

Sebastian

---

<div class="post-metadata">

**Author:** ![Tomasz\_Gajger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomasz_gajger/32/11712_2.png) [@Tomasz\_Gajger](https://community.dynatrace.com/u/Tomasz_Gajger)\
**Post date:** [May 22, 2019, 5:39am UTC](https://community.dynatrace.com/t/can-i-change-the-default-oneagent-log-directory-on-installation-working/20713/3 "2019-05-22T05:39:10Z")

</div>

Hi Alexander,

The default log directory used by OneAgent is /opt/dynatrace/oneagent/log, not /var/log/dynatrace.

Currently it is not possible to change just the logs location, you need to change the entire installation path via INSTALL\_PATH parameter.

I encourage you to share your opinion under the following Product Idea:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-Allow-Alternate-Log-Path-for-Oneagent/idi-p/138398](https://community.dynatrace.com/post/138398)

Please also note that the workaround mentioned by Sebastian would be an unsupported modification of our installation structure.

Regards,  
Tomasz

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [May 22, 2019, 6:15am UTC](https://community.dynatrace.com/t/can-i-change-the-default-oneagent-log-directory-on-installation-working/20713/4 "2019-05-22T06:15:15Z")

</div>

Thank you, Tomasz.

I have already voted for this.

It is clear.
