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 do have some perl skills so I could probably write a script but I imagine there is already something out there that will do this for me.
If anyone has a suggestion for how this can be done 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 do have some perl skills so I could probably write a script but I imagine there is already something out there that will do this for me.
If anyone has a suggestion for how this can be done I would appreciate hearing it.
Thanks in advance.