OpenGroupware Legacy logs to numerous files in the directory
/var/log/opengroupware;
OpenGroupware Coils logs to the file /var/log/coils.log. Managing these log files is an important part of service administrations - bad things happen if the system's
/var/log fills up. Rotating these files can be accomplished using the excellent
logrotate facility provided by your LINUX distribution. logrotate reads all the files present in the
/etc/logrotate.d directory - each service that requires log rotation can simply create configuration file for itself. The recommended log rotation configurations for
OpenGroupare Legacy and
OpenGroupware Coils are as follows:
/var/log/opengroupware/*.log {
copytruncate
rotate 5
daily
size 10M
missingok
notifempty
sharedscripts
compress
}
The file /etc/logrotate.d/ogo for rotating OpenGroupware Legacy log files.
/var/log/coils.log {
copytruncate
rotate 5
daily
size 10M
missingok
notifempty
sharedscripts
compress
}
The file /etc/logrotate.d/coils for rotating OpenGroupware Coils log files.
You can adjust the "
rotate" parameter to change how many log files you want to keep. The setting of "
rotate 5" and "
daily" means the log rotator will keep 5 days worth of logs. The most important option is "
copytruncate" - this instructs the log rotator to make a copy of the current log file and then truncate the existing log file rather than moving the file and having a new file created, this allows the OpenGroupware services to continue to use the same file-handle for logging during [and after] the log rotation operation.
No comments:
Post a Comment