Hi folks,
another task ahead of me:
I'd like to constantly monitor the /var/log/messages file for new (!) and only for new entries containing the word "ERROR".
One idea was starting with "tail".
e.g.
However the problem starts, when I'm trying to find a way to send an email containing the whole ERROR line as soon as an error occurs ...
Could you give me some brainstorming on how to proceed ?
Regards,
Thomas
another task ahead of me:
I'd like to constantly monitor the /var/log/messages file for new (!) and only for new entries containing the word "ERROR".
One idea was starting with "tail".
e.g.
Code:
tail -f | grep ERROR
However the problem starts, when I'm trying to find a way to send an email containing the whole ERROR line as soon as an error occurs ...
Could you give me some brainstorming on how to proceed ?
Regards,
Thomas