I want to customize installation of my agent.
I can change installation directory with parameter:
INSTALL_PATH -> /monitoring/
How i can change log directory default - /var/log/dynatrace to /monitoring/log/
It is possible or not?
I searched forum and find this topic? Any updates?
Solved! Go to Solution.
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.
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://answers.dynatrace.com/content/idea/218002/rfe-allow-alternate-log-path-for-oneagent.html
Please also note that the workaround mentioned by Sebastian would be an unsupported modification of our installation structure.