All,
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!
*.info;mail.none;authpriv.none;snmp.none;cron.none /var/log/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.
you should probably use another system logging daemon, one that allows fine-grained filtering of messages (syslog-ng is one example).