DEIMOS Logfile Rolling | |
BackgroundTo prevent the logfiles for DEIMOS processes from getting overly large, the newlog procedure runs periodically to "roll" the logfile. The newlog process will move current logfile foo to foo.0, and the old foo.0 will become foo.1, etc., until a maximum number of old versions (typically 5) is exceeded; the oldest file will then be removed. The newlog process can optionally compress the old logfiles.InvocationThe newlog script runs as root and is invoked as a cron job. The crontab entry is as follows:0 * * * * /local/ucolick/root/sbin/newlog -f /local/ucolick/root/etc/newlog.conf ConfigurationThe newlog.conf file controls which files are compresed, when they are compressed, how many versions are retained, etc. The files lives at/local/ucolick/root/etc/newlog.confTo edit the file requires root access. The file header documents the contents of the file. | |
Last modified: 07/10/2020 05:20 Send questions or comments to:DEIMOS Support |