Pcornel
Windows · Event Logging

Event Log Troubleshooting

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

Back to the Topic

Answer

The method separates event generation, channel configuration/retention, local query/rendering, forwarding/collection and final interpretation so a failure at one layer is not mistaken for another.

Remember

  • Generated ≠ retained ≠ queryable ≠ rendered ≠ forwarded ≠ correctly interpreted.
  • Start at the earliest unproven boundary.
  • A message rendering failure can coexist with a valid structured event record.
  • Retention/overwrite can remove old evidence without any provider failure.
  • Central absence is not source absence.

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

provider → channel enabled → log file with space → events kept

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 Log Troubleshooting reference map

BoundaryMeaningEvidence limit
GenerationProvider emitted eventrequires effective audit/provider behavior
RetentionChannel kept recordsize/overwrite can remove it
QueryClient can retrieve recordfilter/access can hide it
RenderingMessage resources resolvestructured XML may still be valid
ForwardingCollector receives copyseparate source/transport boundary

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

Confirmation

Confirm action

Continue?