Event Log Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3135
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 eventsGet-WinEvent -FilterHashtable @{LogName='Application';Level=2;StartTime=(Get-Date).AddHours(-1)}— errors last hourGet-WinEvent -ListLog * | ? RecordCount— logs with entrieswevtutil 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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Generation | Provider emitted event | requires effective audit/provider behavior |
| Retention | Channel kept record | size/overwrite can remove it |
| Query | Client can retrieve record | filter/access can hide it |
| Rendering | Message resources resolve | structured XML may still be valid |
| Forwarding | Collector receives copy | separate 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