Next: Flatten - Reading Up: Message Log Previous: Overview

Change Log

At the end of each day, the current log file is moved to the /usr/adm/sg/oldlogs directory. The file is named logfile.YYMMDD. Where YYMMDD represents the year, month, and day the log was created.

There are two main components to the change log facility:

changelogfile is executed daily at midnight by cron. Refer to cron(8) for more details. It runs changelog to move the daily log to the oldlogs directory. You can edit changelogfile to perform special handling of the daily log. This includes mailing the log file to an account on another machine, printing it, flattening it to load into a database, or deleting older log files to conserve disk space. Refer to the comments in changelogfile for details on how to affect these features.


tkevans@delmarva.com