When a PC restarts on its own, blue-screens or an app keeps crashing, Windows usually writes something about it to its event logs. Event Viewer is the built-in tool for reading those logs. It looks intimidating, but you only need a few parts of it to troubleshoot a gaming PC. This guide is based on Microsoft's documentation and Windows Central's walkthrough.
Step 1: Open Event Viewer
Open Start, search for Event Viewer and select the top result. Alternatively, press Windows key + R, type eventvwr.exe and select OK.
Step 2: Find the right log
In the left pane, expand Windows Logs. Microsoft describes the Application, Security and System logs here as the main logs, alongside Applications and Services Logs, which hold logs for individual Windows components.
For most hardware and crash problems, start with:
System: the log Microsoft's Event ID 41 and stop code guidance both point to, so start here for unexpected restarts and blue screens.
Application: events logged by programs, worth checking if one app keeps crashing.
Step 3: Filter for errors around the time of the problem
The logs contain thousands of entries, so filter them:
Right-click System (or Application) and choose Filter Current Log.
Under Logged, pick a time range that covers when the problem happened.
Tick Critical and Error (add Warning if you find nothing).
Select OK.
Windows Central's guide points out that Windows logs warnings and errors during normal operation, and many can be ignored, for example a service that failed to start first time but started later. Focus on entries whose time matches your crash.
If you check the same thing often, right-click a log and choose Create Custom View to save the filter.
Step 4: Read Kernel-Power Event ID 41
If your PC restarted or switched off without a proper shutdown, look for Event ID 41 (source Kernel-Power) in the System log. Microsoft says Windows logs this the next time the computer starts after it shuts down unexpectedly, with the description "The system has rebooted without cleanly shutting down first."
Open the event and look at its event data, which includes the BugcheckCode and PowerButtonTimestamp fields. Microsoft's troubleshooting article explains how to read them:
BugcheckCode is not zero: the PC restarted because of a stop error (a blue screen). The code is shown in decimal; Microsoft's example 159 converts to 0x9F. You can convert it with Calculator in Programmer mode, then look the code up in Microsoft's bug check code reference.
PowerButtonTimestamp is not zero: the PC was restarted by holding down the power button.
Both values are zero, or no Event ID 41 at all: Microsoft says this might indicate a power supply problem, for example an underpowered or faulty PSU, a power cut or the PC being unplugged. It says these symptoms typically indicate a hardware problem, and suggests steps such as disabling overclocking.
If it looks like power, our guide on how to tell if your PSU is failing and our random restarts fix guide are the next steps.
Microsoft's guidance for stop code errors includes checking the system log in Event Viewer for critical errors in the same time frame as the crash, looking for anything that points to a device or driver. It also suggests running Windows Memory Diagnostic, then using Event Viewer to see the results: look in the System log for the MemoryDiagnostics-Results entry.
For a broader view, Reliability Monitor shows crashes and errors on a timeline. If you're dealing with blue screens specifically, see how to fix a blue screen in Windows 11; for games that keep closing, see how to fix games crashing on PC. For RAM problems, a longer test with MemTest86 is more thorough.
Tips
Note the Source and Event ID of anything relevant. Searching for those two together, ideally on Microsoft's own documentation, is the quickest way to find out what an event means.
Don't panic about every red entry. As Windows Central notes, Windows logs errors and warnings during normal operation, so focus on entries that line up with a real problem.
Clearing logs is possible (right-click a log, then Clear Log), but it removes the evidence. Windows Central notes you can choose Save and Clear to keep a copy.
Our verdict
Event Viewer is the first place to look after a crash or unexpected restart. Filter the System log for Critical and Error events around the time of the problem, then check Kernel-Power Event ID 41: a non-zero bug check code points to a blue screen you can look up, while zeros often point to power or hardware, according to Microsoft. Pair it with Reliability Monitor and a memory test, and you can often narrow down the cause.