Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In our current system, we are not effectively monitoring the logs for errors as most of the errors are not serious enough. I want to basically warn users on the important errors. I cannot touch the code, so I cannot change these messages type to fatal.

So, I want to write scripts searching logs for the regex of the important error messages. Is there a opensource software package that does this?

share|improve this question
    
Everything you need to do this is already inluded with Linux.A bash or perl script managed by a cron job would do what you want. –  Joe Internet Jul 28 '11 at 7:04

2 Answers 2

You could do this with nagios. The nrpe plugin allows you to execute custom scripts on a machine. Such a script could easily parse a log and report back the results.

There are already many plugins so you may not need to write anything

share|improve this answer

For general use (with system log for example), you can try out yaala or petit.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.