1

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?

2 Answers 2

0

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.

1
  • 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, 2011 at 20:27
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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