Pcornel
Windows · Event Logging

Event Viewer

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

Back to the Topic

Answer

Event Viewer provides graphical access to classic logs, Applications and Services Logs, custom views and subscriptions. It is a viewer/query client, not the logging engine itself.

Remember

  • Event Viewer is a client over Windows Event Log.
  • Use Filter Current Log before manually scrolling large logs.
  • Details → XML often exposes fields that the General message hides.
  • Custom Views are saved queries; they do not duplicate event data.
  • Administrative Events is a convenience aggregation, not a complete health view.

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

Event Viewer reads logs → filters → shows event details

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 → Event Viewer reference map

BoundaryMeaningEvidence limit
FilterNarrows visible recordsdoes not alter stored events
Custom ViewSaved query definitionnot a copied log
GeneralRendered message viewcan omit structured fields
Details/XMLStructured event representationbest for exact field names
Save EventsExports evidence setpreserve scope/time context

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

Confirmation

Confirm action

Continue?