Skip to content
WETNav
SecurityAuthentication

Event ID 4647: User initiated logoff

User initiated logoff.

Channel
Security
Logged by default
Yes
Written on
Target host
Volume
Low
Audit subcategory
Logoff
Needs a SACL
No

To have this event

  • Enable Logoff: auditpol /set /subcategory:"Logoff" /success:enable /failure:enable

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

TargetUserNameAccount name that initiated logoff
TargetDomainNameDomain of the account
TargetLogonIdLogon ID to correlate with 4624
Have one of these events? Paste it into the decoder

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4647)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

Common questions

What does Windows event ID 4647 mean?
User initiated logoff. It is written to the Windows Security log (Security).
Is event 4647 logged by default?
Yes, a default Windows installation records it. It is controlled by the "Logoff" Advanced Audit Policy subcategory (Logon/Logoff).
Where is event 4647 recorded?
In the Security channel on the target host.

User initiated logoff. Needs the "Logoff" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.