Pcornel
Windows · Event Logging

Event IDs

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

Back to the Topic

Answer

Windows Event IDs help classify recurring event types, but numeric IDs are not globally unique across all providers. Provider/version/channel and payload fields determine operational meaning.

Remember

  • Event ID is scoped by provider, not globally unique.
  • Provider versions can change event schema/message details over time.
  • Event ID + provider + channel is much stronger than Event ID alone.
  • Payload fields often contain the object/account/error code needed for diagnosis.
  • Community lists are shortcuts; verify against the actual provider/event XML on the target system.

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 + Event ID → defined message → context in event data

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 IDs reference map

BoundaryMeaningEvidence limit
ProviderNamespace/owner of event templatemandatory context
Event IDTemplate identifiernot globally unique
VersionSchema versionfields can differ
Task/OpcodeAdditional classificationprovider-defined
EventData/UserDataStructured payloadoften carries diagnostic object/error

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

Confirmation

Confirm action

Continue?