I built a script which facilitates changing the default logging location for most SolarWinds programs in a SolarWinds Orion installation.
Not every log can be moved, but this script does change the majority of the log locations and also takes a backup of the original file beforehand.
The important part is the RegEx that is used to find and then replace the original log path to the one of your choosing.
DISCLAIMER: These materials are provided “AS IS” without any express or implied warranty of any kind.