Pcornel
Windows · Event Logging

System Log

Cheat sheet · https://pcornel.dk/topic.php?topic=3130

Back to the Topic

Answer

The System log commonly exposes service-control, driver, storage, network, time and operating-system component state changes. It is a high-value cross-component troubleshooting source.

Remember

  • System is shared across many Windows infrastructure providers.
  • Provider + ID + payload are required to interpret an event.
  • Kernel-Power unexpected shutdown evidence does not by itself identify why power was lost.
  • Service Control Manager events describe service lifecycle/configuration observations, not application health.
  • Disk/NTFS/storage events should be correlated with storage state and hardware evidence.

First checks

  • Get-WinEvent -LogName System -MaxEvents 50 — recent System events
  • Get-WinEvent -FilterHashtable @{LogName='Application';Level=2;StartTime=(Get-Date).AddHours(-1)} — errors last hour
  • Get-WinEvent -ListLog * | ? RecordCount — logs with entries
  • wevtutil gl <log> — log size and retention

Verify in this order

drivers, services and the OS → System log

Where it usually breaks

First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.

Event Logging → System Log reference map

BoundaryMeaningEvidence limit
Service Control ManagerService state/config eventsRUNNING/failed event is not app health proof
Kernel-PowerPower/session transition evidenceunexpected shutdown reason may remain unknown
Disk/storage providerI/O/path observationsneeds disk/controller/media correlation
Network providerStack/adapter observationsneeds route/link/service evidence
Driver providerDriver lifecycle/errormessage may be symptom of lower hardware issue

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3130

Confirmation

Confirm action

Continue?