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

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

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

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/idi-p/138398

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

Regards,
Tomasz

Thank you, Tomasz.

I have already voted for this.

It is clear.