20 May 2019 03:42 PM - last edited on 11 Apr 2023 10:51 AM by Karolina_Linda
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 topic? Any updates?
Regards,
Alexander
Solved! Go to Solution.
20 May 2019 09:13 PM
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
22 May 2019 06:39 AM - last edited on 11 Apr 2023 10:51 AM by Karolina_Linda
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: https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-Allow-Alternate-Log-Path-for-Oneagent...
Please also note that the workaround mentioned by Sebastian would be an unsupported modification of our installation structure.
Regards,
Tomasz
22 May 2019 07:15 AM
Thank you, Tomasz.
I have already voted for this.
It is clear.