Monday, February 15, 2010

Linux system logs management using logrotate

You can rotate log file using logrotate software and monitor logs files using logwatch software.

Working on it, will update soon


How to truncate all the log files under /var/log? (I don't want to delete them)
bash# for x in `ls -l /var/log|grep "^-r"|awk '{print $9}'`; do >$x; done

1 comment:

Susan C said...

Great reading yyour blog post