This is a process for moving log files/directories and editing the configuration files that utilize it. Many may have started their monitoring with a smaller disk size and added on or want to have logs in a separate place than their other files. The purpose of this process is to show what will need to be edited and some tips to do this efficiently with as little down time as possible.
This document assumes that NMIS9 and OMK are installed in the default locations.
Stop Daemons, this will also stop the logs from being written too while you make your changes.
Copy folders/files to new path, we are doing this recursively and also copying their permissions.
Back up current configuration files before editing
Edit the NMIS9 configuration file, we are using the patch tool found in nmis9/bin. This saves time and doesn't make the user open a text editor to make changes.
Same as step 4) but with the omk configuration file, omk/conf/opCommon.json.
Remove old folder to save space or you can rename or move it.
Create symlink to where the old log files where, this makes it easier to follow wiki and saves the need of editing logrotate.
If you are using syslog you will want to update the configuration file to match the new path. I have given an example using sed (stream editor), this was tested on ubuntu 20.04 and working. Syntax: sed -i 's:<search regex>:<replacement>:g' <input file>
Start your Daemons
NOTE: For logrotate, you do not have to change the paths as long as you did the symlink! It does honor this.