I have a smiliar need to clean up syslog. I get these rows in syslog every 5 minutes
Code:
Aug 10 00:35:00 localhost CROND[10644]: (root) CMD (if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi)
and I'd like to hide them, they are useless to me. The little program, vnstat, on the other hand is great, I'm not going to sacrifice it
. My dream situation is to only have interesting stuff written in syslog - worthwhile information on every row.
I haven't figured out yet how to hide the above CRON messages in syslog, so if you have a clue, throw in a line. So far I've only tried adding ">>/dev/null 2>&1" to /etc/cron.d/vnstat where the CRON job is located at. It didn't seem to do anything (assuming cron automatically reloads cron.d files when their moddate changes).
I run Mandrake 9.2 / 2.4.22