User`s guide

62 007-4403-003
4: Running the SGI Media Server
Managing Log Rollover
Log rollover is the practice of saving the current log file and restarting logging into an
empty log file. Rollover avoids the problems of running out of disk space and of having
a list of log messages too long to handle easily.
VST manages the vtrlog server log file. By default, the log file is saved and a new log
file begun every night at 2:00 a.m. if the log file is at least 10 MB. The default number of
log files retained on the system is 10.
The command rotatelogs is used to manage the log files and is executed by the
system’s cron job handler at the right time. Table 4-2 shows the list of available options.
To change any defaults (such as the time of the rollover or the log size), the crontab
entry of rotatelogs in the system must be edited (as root, using crontab -e).
For example, to retain the last 20 log files on a machine, the rotatelogs entry in
crontab must look like the following:
1 2 * * * /usr/vtr/bin/rotatelogs -m 20
The debug option is off by default. It can be turned on using the -D option. There is only
one level of debugging information (on).
Table 4-2 rotatelogs Command Options
Option Description Default Value
–b Log filename vtrlog
–c Log file compression
–d Log file directory /var/adm/vtr/logs
–h Command options
–l Daemon to notify vtrd
–m Maximum number of backups retained on the server 10
–s Minimum log file size to trigger rollover 10 MB
–D Debug level Off