Quick Solaris 9 question
Posted on 2005-03-09
I am following these instructions for syslog and log rotation but I am stuck what to put next after the > prompt. See at the bottom.
The following command example will configure the rotation of the /var/log/pix.log file:
# logadm pixlog –z 1 /var/log/pix.log \
-a 'kill -HUP `cat /var/run/syslog-ng.pid`' \
The log file is configured to rotate based upon the default size and time restrictions (>1 byte and older than 1 week), all but the last rotated log will be compressed using gzip, the old log files will rotate to the directory /var/log/OLDLOGS and the command “kill –HUP `cat /var/run/syslog-ng.pid`” will be run after log file has been rotated and the new log file created.
MY SOLARIS TERM
# logadm ciscolog -z 1 /var/log/cisco.log \
> -a 'kill -HUP `cat /var/run/syslog-ng.pid`' \
> -t '/var/log/OLDLOGS/$basename.$