Understanding Windows Event Logs: Which Ones Actually Tell You Something

How to get useful answers out of Event Viewer — the logs worth opening, the event IDs that mean something, and how to filter with PowerShell instead of clicking.

Understanding Windows Event Logs: Which Ones Actually Tell You Something

Event Viewer has a reputation for being full of red errors that mean nothing, and it is largely deserved. A healthy Windows machine logs a steady stream of warnings and errors that are entirely normal, which makes the genuinely useful entries hard to find and trains people to ignore the whole thing.

The trick is knowing which handful of logs and event IDs actually indicate something, and filtering to those rather than scrolling. This covers the ones worth knowing and how to query them without clicking through the interface.

Quick Facts

  • Most errors in the System and Application logs are noise. Presence of red does not indicate a problem.
  • The Applications and Services Logs tree holds the useful detail. The top-level logs are summaries by comparison.
  • Event ID 41 means the machine lost power or stopped without shutting down. It is a symptom, never a cause.
  • Event ID 6008 confirms an unexpected shutdown; 1074 tells you who or what initiated a deliberate one.
  • Get-WinEvent with a filter hashtable is dramatically faster than filtering in the interface.

The logs worth opening

LogWhat lives thereWhen to look
SystemDrivers, services, hardware, boot and shutdownCrashes, unexpected restarts, hardware faults
ApplicationApplication and service-level errorsA specific program failing repeatedly
SecurityLogons, account changes, policy changesAccess questions and audit work
SetupFeature and update installationFailed updates or role installs
GroupPolicy/OperationalPolicy processing detailPolicy not applying as expected
Kernel-PowerPower state transitionsUnexpected restarts and sleep faults
Diagnostics-PerformanceBoot and shutdown timingA machine that has become slow to start

The event IDs worth remembering

41. Kernel-Power. The system rebooted without shutting down cleanly. This is the log entry every unexpected restart produces, and it tells you nothing about why. Look at what happened immediately before it: a bugcheck, a thermal event, or nothing at all, which usually points at power or hardware.

6008. EventLog. The previous shutdown was unexpected, with a timestamp. Useful for pinning down exactly when, especially when a user is vague about it.

1074. User32. A shutdown or restart was requested, and by what. This is how you find out that a machine restarting overnight is doing so because of updates rather than a fault.

1001. BugCheck. A blue screen occurred, with the stop code. The stop code is the actual diagnostic; note it before doing anything else.

7000, 7001, 7031, 7034. Service Control Manager. A service failed to start, depends on something that failed, or terminated unexpectedly. 7031 with a repeating count is a service crash-looping.

4624 and 4625. Security. A successful and a failed logon. The logon type field is what matters: type 2 is interactive at the console, type 3 is network, type 10 is Remote Desktop.

4740. Security. An account was locked out. The source computer name in the event is the thing you want, and it is frequently a phone with a stale password rather than a person.

7 and 51. Disk. Bad block and paging error. These are genuine hardware warnings and should not be ignored.

153 and 129. Storahci or disk. An I/O operation was retried or reset. Often the first sign of a failing drive or cable, well before anything else notices.

Querying properly with PowerShell

Filtering in the Event Viewer interface is slow because it reads the whole log and then filters. A filter hashtable pushes the query into the log service and returns in a fraction of the time.

# Errors and criticals in the last day
Get-WinEvent -FilterHashtable @{LogName="System"; Level=1,2; StartTime=(Get-Date).AddDays(-1)} | Format-Table TimeCreated,Id,ProviderName,Message -AutoSize -Wrap

# Every unexpected restart in the last month
Get-WinEvent -FilterHashtable @{LogName="System"; Id=41,6008,1074; StartTime=(Get-Date).AddDays(-30)} | Select-Object TimeCreated,Id,Message

# Failed logons in the last day
Get-WinEvent -FilterHashtable @{LogName="Security"; Id=4625; StartTime=(Get-Date).AddHours(-24)} | Select-Object TimeCreated,@{n="Account";e={$_.Properties[5].Value}},@{n="LogonType";e={$_.Properties[10].Value}},@{n="Source";e={$_.Properties[19].Value}}

# Account lockouts, from a domain controller
Get-WinEvent -FilterHashtable @{LogName="Security"; Id=4740} -MaxEvents 20 | Format-List TimeCreated,Message

# Query a remote machine
Get-WinEvent -ComputerName SRV01 -FilterHashtable @{LogName="System"; Level=2; StartTime=(Get-Date).AddHours(-6)}

# Which log is a provider writing to?
Get-WinEvent -ListLog * | Where-Object RecordCount -gt 0 | Sort-Object RecordCount -Descending | Select-Object -First 20 LogName,RecordCount

The Level values are 1 for Critical, 2 for Error, 3 for Warning and 4 for Information. Filtering to 1 and 2 removes the great majority of the noise immediately.

The noise worth ignoring

These appear on healthy machines constantly and are not worth investigating unless something else points at them.

  • DistributedCOM 10016. Permission warnings for COM components. Documented by Microsoft as safe to ignore, and difficult to suppress properly.
  • Service Control Manager timeouts on boot for services that then start fine a moment later.
  • WHEA-Logger corrected hardware errors. Corrected is the operative word. The machine handled it.
  • Group Policy warnings during boot when the network is not up yet.
  • Bonjour, printer and vendor helper errors from software that has been uninstalled.

Making it useful across more than one machine

Reading logs machine by machine does not scale beyond a handful. Windows Event Forwarding is built in and free. Configure a collector server, define a subscription of the event IDs you care about, and point machines at it with Group Policy. It requires no agent and no licence.

For anything larger, a log aggregation platform is the answer, but Event Forwarding covers a surprising amount of ground for a small estate and is worth setting up before buying anything.

🛠️

Gear We Recommend

Digging through logs across several servers is much easier with the screen space for it. Here is our admin machine spec.

Browse our Admin Machine picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases

Glossary

TermWhat it means
Event IDA numeric identifier for a specific type of logged event.
ProviderThe component that wrote the event, such as Service Control Manager.
LevelThe severity. Critical, Error, Warning, Information or Verbose.
BugcheckA blue screen stop event, recorded with a stop code.
Logon typeA field indicating how a logon occurred. Console, network or remote.
Filter hashtableA PowerShell structure that pushes filtering into the log service.
Event forwardingBuilt-in Windows collection of events from multiple machines to one collector.

Frequently asked questions

Are all the red errors in Event Viewer a problem?

No, and this is the main reason people stop using it. A healthy Windows machine logs errors and warnings constantly. Filter to Critical and Error within a specific time window around the fault you are investigating.

What does Event ID 41 mean?

The system restarted without shutting down cleanly. It is recorded after the fact and does not say why. Look at what was logged immediately before it. A bugcheck, a thermal event, or nothing at all, which usually points at power or hardware.

How do I find out who restarted a server?

Event ID 1074 in the System log records shutdown and restart requests along with the process and user that initiated them. If there is no 1074 and only a 41 and 6008, the machine was not shut down deliberately.

Where do I look for a locked out account?

Event ID 4740 on the domain controller holding the PDC emulator role. The event includes the source computer, which is what you actually need. It is usually a device with a stale cached password rather than a person.

Is Get-WinEvent better than Get-EventLog?

Yes. Get-EventLog is the legacy command and cannot read the Applications and Services Logs at all, which is where most of the useful detail lives. Get-WinEvent with a filter hashtable is also considerably faster.

Disclosure: this post may contain affiliate links. If you buy through one of them, we may earn a small commission at no extra cost to you. We only recommend products we’ve tested or genuinely rate.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Intune, Active Directory, PowerShell and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published 770+ practical guides to real-world IT problems. He also builds free Windows utilities, including Ultimate Settings Panel, which has been downloaded over 850,000 times.

Leave a Reply

Your email address will not be published. Required fields are marked *


Part of The Geek Network