Search code examples
c#wmievent-log

Use C# to gather event logs from a specified time period


Does anybody know if its possible to save the windows event logs from a given time interval as a text file with C#? For example say I want to save the System event logs from between 10 - 11 am in a text file. If it is possible does anybody have a link to a good tutorial or maybe a code snippet that could get me going? I have searched online but cant get what I am looking for.


Solution

  • http://www.dreamincode.net/forums/topic/93268-working-with-the-system-event-log-with-c%23-intro/