Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there an application that can monitor a number of log files (text) and watch for regular expression pattern matches, then send email alerts when it finds one? I'm looking for something that will run on Windows.

I was about to start writing a script to try to do this, then it occurred to me that there's probably already a good tool for this. The simpler the better. Any ideas?

share|improve this question
add comment

2 Answers 2

Swatch is a venerable perl script that does what you want, but I recognize that you may not want to install Perl on your Windows boxes. I don't know any standalone PowerShell-based tools, but if you're writing your own PowerShell script, you should take a look at the Log Parser COM.

share|improve this answer
    
Thanks for your input. I looked briefly at Swatch and the Log Parser COM, but decided to write something in vbscript instead. –  Mark Apr 26 '11 at 20:27
add comment
up vote 0 down vote accepted

I ended up writing something in vbscript to do this. The bit of code that does the parsing was the hardest part, but overall not too hard really.

share|improve this answer
add comment

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.