Allan Spagnol Comar wrote:

Hi All, I was looking for explanations about syslog-ng and got stucked....
I was wondering why my /var/log/messages has 2.1 GB size and if I can
reduce this size or config it better; I am using default syslog-ng
config that was emerged by gentoo instalation.

For starters:

emerge logrotate
man logrotate
vi /etc/logrotate.d/syslog-ng

Also, if there is a particular message that is filling up your log, you can filter that out in /etc/syslog.d/syslog-ng.conf. For example:

# The eth reset messages also bug me...
filter not_eth_reset {
       not(match("PHY reset until link up"));
};
...
log { source(src); filter(not_nmbd); filter(not_eth_reset); destination(messages); };
...

HTH
-Richard

--
gentoo-user@gentoo.org mailing list

Reply via email to