Save logs into database from event viewer

Posted by Shivanichhabra4u under ASP.NET on 11/23/2008 | Views : 3811 | Status : [Member] | Replies : 1
I have to make one task that will run everyday and it will export the logs from event viewer and will save into database.

please help me out how can i do it automatically




Responses

Posted by: Raja on: 11/24/2008 [Member] Starter

Up
0
Down
You can create a Windows service and loop through the Event Viewer entries and insert records into the database.

You can see how to create a windows service here

http://www.c-sharpcorner.com/UploadFile/mahesh/window_service11262005045007AM/window_service.aspx

http://www.aspfree.com/c/a/C-Sharp/Creating-a-Windows-Service-with-C-Sharp-introduction/


http://www.montgomerysoftware.com/CreatingWindowsServiceInCSharp.aspx

Thanks


Regards,
Raja, USA

Shivanichhabra4u, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response