I need to perform given action when specific message (matching for example regexp) arrives at the UDP port (syslog format). How to do this (i.e. by using already avaible softwere as opposed to writing one by hand)?
I need to perform given action when specific message (matching for example regexp) arrives at the UDP port (syslog format). How to do this (i.e. by using already avaible softwere as opposed to writing one by hand)?
Syslog-ng can do this with something like:
Maybe you should have a look at rsyslog. Its syntax is much more flexible and easy than syslogd. Also is much more powerful overall.
In any case, what you want in rsyslog would be like
I guess this link to logwatch manpage will be usefull.
You can use OSSEC to watch the specific pattern and use the active response functionality to do do your desired action.