Use this branch when you need to prove when a state change occurred, identify which component reported it, correlate a symptom across time, or distinguish a local observation from the root cause.
Event Logging
Windows Event Logging records structured events from Windows components, services, applications and security auditing. The useful unit is not merely an Event ID: provider, channel, level, timestamp, task/opcode, keywords and event data give the event its meaning.
1. Which log: System, Application, Security, or an app log under Applications and Services Logs?
2. Filter by time and level: Get-WinEvent -FilterHashtable @{…}.
3. Read the provider and Event ID.
4. Look up the ID for the provider.
5. Forward important logs centrally.
event raised by a provider → written to a channel/log → retained per size policy → read or forwarded
Verify the implicated runtime/configuration boundary independently and compare timestamps.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not search every log without scope, treat Warning/Error level as automatic root cause, or conclude that “no event” means “nothing happened.” Retention, filtering, disabled analytic/debug channels, audit policy and collector failures can all hide evidence.
Operational reference
Fast context before you go deeper.
Get-WinEvent -FilterHashtable @{LogName="System"; Id=<id>}Primary Commands
Configuration and operational commands for this Topic.
Get-WinEvent -FilterHashtable @{LogName="System"; Id=<id>}ReferenceQuery Windows event logs.
Use when: Use after confirming the PowerShell target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedGet-WinEvent -FilterHashtable @{LogName='System'; StartTime=(Get-Date).AddHours(-1)}ReferenceStructured Windows Event Log query.
Use when: Use after confirming the PowerShell target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedGet-WinEvent -FilterHashtable @{LogName="System"; StartTime=(Get-Date).AddHours(-1)}ReferenceReads recent structured Windows event log entries.
Use when: Use after confirming the PowerShell target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedwevtutilReferenceWindows command-line utility for enumerating event logs/providers, reading log configuration, querying/exporting events and administering Windows Event Log. Some subcommands change or clear log state, so separate read-only evidence collection from administrative actions.
Use when: Use wevtutil el to enumerate logs, wevtutil gl <log> to inspect channel configuration, wevtutil qe <log> ... to query events and wevtutil epl <log> <file.evtx> to export retained evidence.
Quick note: wevtutil is especially useful when GUI access is unavailable and for exact channel names/configuration. Get-WinEvent is usually more ergonomic for PowerShell object pipelines.
Get-WinEventVerifyPowerShell cmdlet for querying Windows Event Log and ETW-style event sources as structured EventLogRecord objects, with efficient server-side filtering through FilterHashtable, FilterXml or XPath.
Use when: Use -FilterHashtable for practical log/provider/ID/time filters, -FilterXml/-FilterXPath for advanced queries, and ToXml()/Properties when exact structured payload matters.
Quick note: Get-WinEvent returns objects, so formatted console columns are only a view. Inspect properties/XML before concluding a field is absent.
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
Anchor the investigation on a time window and symptom. Query the likely channel/provider, preserve the original event record, inspect structured fields, then verify the implicated state independently with service/process/network/storage/security evidence as appropriate.
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.
Subtopics
Go one level deeper into this subject.
Windows Event Log is the underlying Windows logging service and channel/provider model used by Event Viewer, wevtutil, Get-WinEvent and many management/forwarding features.
Subtopic Event ViewerEvent Viewer is the Windows MMC interface for browsing, filtering, saving and correlating Windows Event Log channels and individual event records.
Subtopic Application LogThe Application log is a classic Windows event channel used by many applications, services and Windows components for application-scoped operational events.
Subtopic System LogThe System log is the classic Windows channel for events emitted by system components such as services, drivers, kernel-adjacent components and infrastructure providers.
Subtopic Security LogThe Security log is the protected classic Windows channel that stores audit events generated according to security/audit policy, including logon, account, privilege, object and policy activity.
Subtopic Setup LogThe Setup log is the classic Windows event channel for setup and servicing activity emitted by Windows setup/installation-related providers.
Subtopic Forwarded EventsForwarded Events is the default collector channel used by Windows Event Forwarding (WEF) to store events delivered from source computers through subscriptions.
Subtopic Event IDsAn Event ID is a provider-defined numeric identifier for an event template/type; it is only meaningful together with the provider and event context.
Subtopic Event Log TroubleshootingEvent Log Troubleshooting is the evidence-first method for diagnosing missing events, noisy logs, query failures, incomplete history, forwarding gaps and misinterpreted Windows event records.
- Treat provider + channel + Event ID + timestamp/context as one evidence tuple.
- An event proves that a provider reported an observation; it does not automatically prove root cause.
- Absence of an event can be weak evidence if auditing, channel enablement, retention or collection scope is unknown.
- Operational/Admin channels often contain more component-specific detail than the classic Application/System logs.
- Correlate logs with runtime state, configuration and the exact symptom before concluding causation.
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
Windows Event Log is a structured telemetry subsystem rather than a single text file. Providers publish events into channels, and each event carries system metadata plus provider-specific payload data. Classic logs such as Application, System, Security and Setup coexist with many role/component-specific channels.
ReferenceImportant terms & boundaries2 sections · depth on demand
What the evidence shows
The core lookup boundary is Event ID alone is insufficient. Interpret an event using at least provider, channel, Event ID, time, level and the event data/message. Different providers can reuse the same numeric ID, and a message rendered on one system may depend on provider resources installed there.
In depth
Windows event logging architecture: providers write events to channels (Admin, Operational, Analytic, Debug) stored as .evtx files in %SystemRoot%\System32\winevt\Logs. Event Log service (EventLog) manages them; Windows Event Forwarding collects them centrally.
Get-WinEvent -ListLog * | ? RecordCount -gt 0 | Sort RecordCount -Desc | Select -First 15 LogName,RecordCount,MaximumSizeInBytes
wevtutil gl Security
wevtutil sl Security /ms:1073741824 # 1 GB Security log
Default log sizes are far too small for investigations — size Security logs in hundreds of MB to GB, and forward to a SIEM.
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. 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 reference map
Fast lookup boundaries for Event Logging.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Channel | Container/subscription for events | channel presence does not prove useful auditing |
| Provider | Component that emits an event | provider name does not prove root cause |
| Event ID | Provider-defined event identifier | ID alone is ambiguous |
| Payload | Structured event-specific data | payload may describe symptom rather than cause |
| Correlation | Time/context relationship across evidence | correlation is not causation |