Problem
My 'syslog' file is too big, how can I truncate this?
Solution
You may wish to copy the old syslog first or, if disk space is an issue, use your preferred compression tool to take a copy:
# cp /usr/adm/syslog /usr/adm/syslog.oldor:# gzip -9 -c /usr/adm/syslog > /usr/adm/syslog.old.gzIf you would like to truncate your syslog file do the following:
a) Truncate the file to 0 bytes in size using:
# > /usr/adm/syslogb) Restart the syslog daemon using:# kill -1 `cat /etc/syslog.pid`c) To verify that all is working run:
# logger "Test"d) and then check the end of the log file to see that the "Test" text appears in the log:
# tail /usr/adm/syslog See also
TA#125345, "syslog(3G) messages that I wish to send to a specific logfile or host also get logged to /var/adm/log/osmlog on UnixWare 7"