# oneagent linux install all in /opt/dynatrace

**URL:** <https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [July 28, 2020, 7:10pm UTC](https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918 "2020-07-28T19:10:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan\_rose](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jordan\_rose](https://community.dynatrace.com/u/jordan_rose)\
**Post date:** [July 28, 2020, 7:10pm UTC](https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918/1 "2020-07-28T19:10:32Z")

</div>

Is there a way to tell oneagent installer to use /opt/dynatrace instead of /var/lib/dynatrace/oneagent/agent/config for config files?

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [July 28, 2020, 8:29pm UTC](https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918/2 "2020-07-28T20:29:08Z")

</div>

Hi Jordan,

I searched through the documentation to see if this was a parameter that you could set on install, but unfortunately it is not. See this page for available parameters: [Customize OneAgent installation on Linux — Dynatrace Docs](https://www.dynatrace.com/support/help/technology-support/operating-systems/linux/installation/customize-oneagent-installation-on-linux/)

You can define a specific directory for the agent binaries, but the log and config file locations aren’t configurable.

Could you go into detail on why you would like to move the config directory in case Product Development sees the thread?

Thanks

-Dallas

---

<div class="post-metadata">

**Author:** ![jordan\_rose](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jordan\_rose](https://community.dynatrace.com/u/jordan_rose)\
**Post date:** [July 28, 2020, 8:34pm UTC](https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918/3 "2020-07-28T20:34:12Z")

</div>

Thanks for the response. Security is tight in my organization and we do not have access to remove files in /var. We have ran into some situations where to get an agent communicating properly we needed to do a full removal including those config files and then reinstall. Also it would be a QOL improvement to just have everything in a single place.

---

<div class="post-metadata">

**Author:** ![Greg\_Sanders](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Greg\_Sanders](https://community.dynatrace.com/u/Greg_Sanders)\
**Post date:** [July 29, 2020, 6:15pm UTC](https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918/4 "2020-07-29T18:15:57Z")

</div>

In addition, we have standard log directories that we are asked to redirect logs to.

---

<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:** [August 19, 2020, 4:55am UTC](https://community.dynatrace.com/t/oneagent-linux-install-all-in-opt-dynatrace/19918/5 "2020-08-19T04:55:59Z")

</div>

Hi Jordan,

The /var/lib/dynatrace/oneagent path is not configurable, only the installation path is as mentioned by Dallas.

The logs directory is going to change in future release from /opt/dynatrace/oneagent/log to standards-compliant /var/log/dynatrace/oneagent. You can watch this specific product idea: [https://community.dynatrace.com/content/idea/218002/rfe-allow-alternate-log-path-for-oneagent.html](https://community.dynatrace.com/content/idea/218002/rfe-allow-alternate-log-path-for-oneagent.html) and stay tuned for an announcement on our product blog.

Regards,  
Tomasz
