Are there any log file about Windows Services Status?

Windows ServicesLogging

Windows Services Problem Overview


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

Windows Services Solutions


Solution 1 - Windows Services

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)."

Solution 2 - Windows Services

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.

Solution 3 - Windows Services

Through the Computer management console, navigate through Event Viewer > Windows Logs > System. Every services that change state will be logged here.

You'll see info like: The XXXX service entered the running state or The XXXX service entered the stopped state, etc.

Solution 4 - Windows Services

The most likely place to find this sort of information is in the event viewer (under Administrative tools in XP or run eventvwr) This is where most services log warnings errors etc.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHongseok YoonView Question on Stackoverflow
Solution 1 - Windows ServicesPopsView Answer on Stackoverflow
Solution 2 - Windows ServicesGishuView Answer on Stackoverflow
Solution 3 - Windows ServicesHeWhoLikesTurtlesView Answer on Stackoverflow
Solution 4 - Windows ServicesTetraneutronView Answer on Stackoverflow