How can i read the windows event log by particular Source, Date time and category??
A:
This should help
http://asp.dotnetheaven.com/util/srcview.aspx?path=~/howto/samples/Services/EventLog/LogInfo/LogInfo.src&file=CS\LogInfo\loginfo.cs&lang=C%23+Source
Sorry the link is not appearing so i have to paste whole url
Ismail
2010-04-26 12:51:02
I think you missed the link
Sathish
2010-04-26 12:52:50
But i am looking for particular source.. the link which u have provided will list out all the application logs
Sathish
2010-04-26 12:54:23
Basically i need a filtering kind of..
Sathish
2010-04-26 12:54:42
You can loop through eventLog.Entries and see event.Source and add them to a list if that is the Source you are looking for.
Ismail
2010-04-26 13:40:07
A:
You could use Log Parser
Comes with an API you can use, check the help file once installed :)
Si Philp
2010-04-26 12:57:32
+1
A:
Consider using EventLog Class.
EventLog lets you access or customize Windows event logs, which record information about important software or hardware events. Using EventLog, you can read from existing logs, write entries to logs, create or delete event sources, delete logs, and respond to log entries. You can also create new logs when creating an event source.
Lukas Šalkauskas
2010-04-26 13:00:51