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.
| Field | What it tells you |
|---|---|
| TargetUserName | Account name that initiated logoff |
| TargetDomainName | Domain of the account |
| TargetLogonId | Logon ID to correlate with 4624 |
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderUser initiated logoff. Needs the "Logoff" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.