Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any log file about Windows Services Status?

I want to figure out when the services was start up and terminated. Are there any kind log file about it?

like image 203
Hongseok Yoon Avatar asked Jul 01 '09 06:07

Hongseok Yoon


People also ask

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.

What are service logs?

Service logs provide diagnostic information about the resources in your tenancy. When you enable logging on resources, you receive information about the resource in a log file. This information allows you to analyze, optimize, and troubleshoot your resources.


2 Answers

Under Windows 7, open the Event Viewer. You can do this the way Gishu suggested for XP, typing eventvwr from the command line, or by opening the Control Panel, selecting System and Security, then Administrative Tools and finally Event Viewer. It may require UAC approval or an admin password.

In the left pane, expand Windows Logs and then System. You can filter the logs with Filter Current Log... from the Actions pane on the right and selecting "Service Control Manager." Or, depending on why you want this information, you might just need to look through the Error entries.

enter image description here

The actual log entry pane (not shown) is pretty user-friendly and self-explanatory. You'll be looking for messages like the following:

"The Praxco Assistant service entered the stopped state."
"The Windows Image Acquisition (WIA) service entered the running state."
"The MySQL service terminated unexpectedly. It has done this 3 time(s)."

like image 119
Pops Avatar answered Oct 10 '22 05:10

Pops


Take a look at the System log in Windows EventViewer (eventvwr from the command line).
You should see entries with source as 'Service Control Manager'. e.g. on my WinXP machine,

Event Type: Information Event Source:   Service Control Manager Event Category: None Event ID:   7036 Date:       7/1/2009 Time:       12:09:43 PM User:       N/A Computer:   MyMachine Description: The Background Intelligent Transfer Service service entered the running state.  For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 
like image 27
Gishu Avatar answered Oct 10 '22 03:10

Gishu