Posts Tagged ‘syslog-ng’

Remove log statistics lines from /var/log/messages

Sunday, October 18th, 2009

If you use syslog-ng, you might find /var/log/messages has lots of lines like

Oct 18 17:42:06 stairs syslog-ng[2391]: Log statistics; processed='center(queued)=468', processed='center(received)=468', processed='destination(hosts)=0', processed='destination(d_boot)=0', processed='destination(d_auth)=42', processed='destination(d_cron)=256', processed='destination(d_mlal)=0', processed='destination(d_kern)=0', processed='destination(d_mesg)=100', processed='destination(d_cons)=0', processed='destination(d_spol)=0', processed='destination(d_mail)=70', processed='source(tcpgateway)=0', processed='source(s_sys)=468', processed='source(gateway)=0'

This is because it is default to output stats every 600 seconds. Add an entry like

stats_freq (86400);

in the options section of /etc/syslog-ng.conf and do a service syslog-ng reload (RHEL / Centos) to quieten it down a bit.

Popularity: 2% [?]