rsyslog: execute script on matching log event
I have the following line in my /etc/rsyslog.conf
:programname, contains, "suhosin" /var/log/suhosin.log
which logs all php security related incidents to /var/log/suhosin.log.
That is nice, but I would like rsyslog to execute my script action.sh
instead of logging to file. How could I do that?
No comments:
Post a Comment