Use it when an expected event is missing, Get-WinEvent/wevtutil returns errors, Event Viewer cannot render a message, logs roll over too quickly, or central forwarding disagrees with the source.
Event Log Troubleshooting
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.
1. Log missing events → enabled? Get-WinEvent -ListLog <log>.
2. Overwritten → increase size.
3. Security events missing → audit policy (auditpol /get).
4. Event Log service running? Get-Service EventLog.
5. Corrupt log → export, clear, restart service.
provider → channel enabled → log file with space → events kept
Collect stage-native evidence and test one low-risk hypothesis before changing logging policy/state.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not clear logs, increase sizes, enable verbose channels or modify audit policy before preserving before-state. Those changes can destroy or materially alter the evidence you are trying to diagnose.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
If the event is missing centrally, first query the source. If missing locally, confirm audit/provider conditions and channel retention. If present but query misses it, simplify the filter. If XML is present but message says it cannot be found, treat that as a rendering/resource problem.
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good means the relevant channel/provider is collecting with sufficient retention, a controlled test produces the expected event/state transition when appropriate and the original incident no longer produces the prior correlated failure events. Broken evidence is provider/channel disabled, overwritten window, timestamp mismatch or repeated event correlated to the failing transaction. The limit of what it shows is that clean logs do not show service health; pair event evidence with the original workload and other state surfaces.
Step 3 Native failure isolation and next-check logic Narrow the fault
Define the incident time window and affected host/service, then query the provider/channel most directly tied to the failing step. Correlate event IDs/activity IDs/process or resource identifiers with the original operation rather than searching only for 'Error'. If expected events are absent, verify channel enabled state, retention/overwrite and collection path before concluding nothing happened. For recurring incidents, save a focused filter or forwarding rule instead of clearing logs as a troubleshooting step.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceWhat it is1 section · depth on demand
Core model
Event-log troubleshooting is most reliable when treated as a pipeline. The question is not just “is the event there?” but “was it generated, retained, queryable, renderable, forwarded and interpreted correctly?”
ReferenceHow it works1 section · depth on demand
How it works
Windows Event Log records provider events into channels with provider-specific IDs, levels, keywords and retention policy. Event presence is an observation, not automatic causation; event absence is also weak evidence unless the relevant provider/channel was enabled, retained and queried for the correct time/computer. Time synchronization and forwarded-event latency affect correlation, so use timestamps and stable identifiers across logs.
ReferenceImportant terms & boundaries3 sections · depth on demand
What the evidence shows
Use native structured fields as the durable evidence source. Rendered message strings are useful for humans but can fail when message resource DLLs/providers are absent on a viewing system.
In depth
When the event you need is not there
| Cause | Check | Fix |
|---|---|---|
| Log full and set to Do not overwrite | wevtutil gl Security → retention: true, autoBackup | Overwrite as needed or archive; increase size |
| Log too small — rolled over | wevtutil gli Security → oldest record time | Increase maxSize (wevtutil sl Security /ms:1073741824) |
| Channel disabled | wevtutil gl Microsoft-Windows-TaskScheduler/Operational → enabled: false | wevtutil sl <channel> /e:true |
| Audit policy not enabled | auditpol /get /category:* | Advanced audit policy via GPO |
| Event Log service problems | System log errors from EventLog; corrupt .evtx | Restart service; move corrupt file away |
The wevtutil reference documents listing logs (el), getting configuration and status (gl, gli), setting log properties (sl), querying (qe) and exporting (epl).
C:\> wevtutil gli Security
creationTime: 2026-10-01T06:02:11.000Z
lastAccessTime: 2026-11-27T09:41:02.000Z
lastWriteTime: 2026-11-27T09:41:02.000Z
fileSize: 134221824
attributes: 32
numberOfLogRecords: 241883
oldestRecordNumber: 1022941
Central collection (Windows Event Forwarding)
wecutil qc # on the collector
winrm quickconfig # on sources (or via GPO)
wecutil gr <subscription> # runtime status per source
| WEF problem | Check |
|---|---|
| Source never appears | GPO Configure target Subscription Manager, WinRM listener, firewall 5985 |
| Source active but no events | Collector's Network Service needs read access to the source's log (add to Event Log Readers) |
| Events delayed | Delivery optimisation setting (Normal = up to 15 min) |
Corrupt log file
The Event Log service cannot simply be stopped while other services depend on it; wevtutil cl <log> /bu:C:\Temp\backup.evtx backs up and clears the log instead. Persistent corruption of .evtx files points to disk problems — check storage events.
*The Security log size and record counters are illustrative values, not a collected event-log inventory.*
Method
Event log troubleshooting deals with logs that are missing events, full, corrupted or not forwarded.
Get-WinEvent -ListLog Security, System, Application | Select-Object LogName, MaximumSizeInBytes, RecordCount, LogMode, IsEnabled
wevtutil gl Security
wevtutil sl Security /ms:1073741824 # 1 GB
auditpol /get /category:*
Get-Service EventLog, Wecsvc
wecutil gr <subscription> # WEF subscription status
| Symptom | Cause |
|---|---|
| Expected security events missing | Audit policy not enabled (use Advanced Audit Policy) |
| Old events gone quickly | Log too small, overwrite mode |
| Events not reaching collector | WEF subscription, WinRM, permissions (Event Log Readers) |
| Event Viewer errors opening log | Corrupted .evtx; clear after export |
Check effective audit policy with auditpol — GPO settings and local settings can conflict.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Event Logging → Event Log Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/wes/windows-event-log · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Event Logging → Event Log Troubleshooting reference map
Fast lookup boundaries for Event Logging → Event Log Troubleshooting.
| 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 |