How executing an action after an log

Hello communauty,

Is that possible to executing an action just after a new log message, when this message match a regex, thanks to a shell script?

For example when FreeBSD kernel add a new log message (in /var/log/kern.log for instance), a script parse it and if this message match a specific word, an action is accomplished...

Many thanks
 
You are right that the script itself is bruteforce-specific, however the implementation can be adapted to anything else....
 
Back
Top