Event Viewer
Cheat sheet · https://pcornel.dk/topic.php?topic=3128
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 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
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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Filter | Narrows visible records | does not alter stored events |
| Custom View | Saved query definition | not a copied log |
| General | Rendered message view | can omit structured fields |
| Details/XML | Structured event representation | best for exact field names |
| Save Events | Exports evidence set | preserve 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