Event Log Monitor
Posted on 2009-04-13
VERY NEW to C# (coding in general)
I want to write an app (console or preferably a service) that will watch the event log for specific words in a Description, and react based upon that error. For instance:
An event log is written to the Application Log with the word "Fiddler" in the description. The app will then look back 5 minutes for any other events that may have been recorded (meeting the same criteria) plus look for an event that indicates that a specific service has been recycled....if true, do nothing. If there are events and the service has not been recycled then recycle the service in question.
The last part just prevents a loop from occurring. the events will happed when the service is recycled...that is the reasoning behind looking back 5 minutes.