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
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