Yungwei Chen
2010-May-12 17:59 UTC
[CentOS] Control what messages go into /var/spool/mail/root
Hi, I found some info messages below in /var/spool/mail/root. To reduce the size of that file, I'm wondering if there's a way to prevent those unimportant messages from entering /var/spool/mail/root. Thanks. 2010-05-10T10:32:27-05:00 <authpriv.info> se1 su: pam_unix(su-l:session): session closed for user root 2010-05-10T10:01:28-05:00 <local1.info> se1 Keepalived_vrrp: VRRP_Instance(VI_1) Received lower prio advert, forcing new election 2010-05-10T10:02:02-05:00 <syslog.info> se1 syslog-ng[12531]: Log statistics; dropped='tcp(......)=0', processed=..... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100512/b5dd442a/attachment.html>
John R Pierce
2010-May-12 18:39 UTC
[CentOS] Control what messages go into /var/spool/mail/root
Yungwei Chen wrote:> > Hi, > > I found some info messages below in /var/spool/mail/root. > > To reduce the size of that file, I'm wondering if there's a way to > prevent those unimportant messages from entering /var/spool/mail/root. > Thanks. > > 2010-05-10T10:32:27-05:00 <authpriv.info> se1 su: > pam_unix(su-l:session): session closed for user root > > 2010-05-10T10:01:28-05:00 <local1.info> se1 Keepalived_vrrp: > VRRP_Instance(VI_1) Received lower prio advert, forcing new election > > 2010-05-10T10:02:02-05:00 <syslog.info> se1 syslog-ng[12531]: Log > statistics; dropped='tcp(??)=0', processed=?.. >um, that looks like stuff I'd expect to see in /var/log not in /var/spool/mail