I am pushing Cisco router logs to syslogd on a FreeBSD box. I want to be notified when high priority messages are logged. The notification would be via email. The problem I'm running into is I'm not sure how to parse the logs to find the right messages.
I am currently sending warning and higher priority logs to the same file. I could split this into 2 or more files if that will help. For instance, one file for messages I want to be alerted on and another file for everything else.
I imagine there is a utility out there that will parse the log file and send out notifications but I just can't find it. If anyone has a suggestion I would appreciate hearing it.
Thanks in advance.
I am currently sending warning and higher priority logs to the same file. I could split this into 2 or more files if that will help. For instance, one file for messages I want to be alerted on and another file for everything else.
I imagine there is a utility out there that will parse the log file and send out notifications but I just can't find it. If anyone has a suggestion I would appreciate hearing it.
Thanks in advance.