Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i read the eventlog of windows service

I am trying to modify an already written Windows service.

I see the source has an System.diagnostic.EventLog object which logs different action of the service.

I am trying to figure out how do i read this log. From semantics it seems that Eventlog is logging several actions of service.

where is this log stored, how can i see it, i need access to it as my service sometimes stop intermittently.

I tried to google it but did not find any solid answers. Putting the questions simply what is an eventlong and how do i use it.

like image 389
Kazoom Avatar asked Feb 19 '10 19:02

Kazoom


People also ask

How do I view Windows Service logs?

Click Start > Control Panel > System and Security > Administrative Tools. Double-click Event Viewer. Select the type of logs that you wish to review (ex: Windows Logs)

How do I view Windows syslog?

To view the security logOpen Event Viewer. In the console tree, expand Windows Logs, and then click Security. The results pane lists individual security events. If you want to see more details about a specific event, in the results pane, click the event.

What do Windows event logs show?

Windows event log is an in-depth record of events related to the system, security, and application stored on a Windows operating system. Event logs can be used to track system and some application issues and forecast future problems.

Where are Windows Service logs stored?

By default, Event Viewer log files use the . evt extension and are located in the %SystemRoot%\System32\winevt\Logs folder.


1 Answers

In 'Computer Management' you'll see an entry labelled 'Event Viewer'. Depending on which version of Windows you're running, there will be several sub-entries below this conforming to each of the event logs Windows maintains. Your application will probably be logging to the 'Application' log, although it might also log to 'System'. Click these subitems to have their log contents show up in the central pane.

like image 58
Eight-Bit Guru Avatar answered Sep 20 '22 16:09

Eight-Bit Guru