Filter entries in /var/log/messages on CentOS
Posted on 2011-03-09
I need to know if there is a way to filter entries from being logged in /var/log/messages. I see alot or repetitive, un-important things being logged that i don't need logged and it makes it hard to review the log file.
I tried to add an entry in /etc/syslog.conf, for example, snmpd entries,
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
This stopped logging to the messages file altogether so i assume it broke it because when i removed the entry, things started being logged again.
I am running CentOS 5.5 64-bit so anyone with experience in this or RHEL may know how to do this.