.comment-link {margin-left:.6em;}

Free Penguin

Monday, November 19, 2012

logalert

Very often we go through logs looking for certain messages (hopefully using grep), just to execute a certain action afterwards.

In such case, logalert may come of help. It is a log file monitor tool which executes a specific action or script, whenever it matches a given string (pattern). You can even use the matched string in the action, such as a parameter to a script.