Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.