FolderRisk: Caution
Logs C:\Windows\System32\winevt\Logs
Folder holding the Windows event logs in .evtx format, read by Event Viewer.
What it’s for
This is where the Windows Event Log service writes its .evtx files: every log shown in Event Viewer maps to one of them. The location is stored in the Registry (the File value of each log), so it can be moved, for example to a dedicated volume on a server. This page covers what all logs share; each important .evtx has its own page.
What it contains
- The classic logs:
Application.evtx,Security.evtx,System.evtxandSetup.evtx. - The “Applications and Services Logs” channels: one file per channel, named after the channel path, for example
Microsoft-Windows-PowerShell%4Operational.evtx. - Frequently consulted
Operationalchannels:Microsoft-Windows-GroupPolicy%4Operational.evtx,Microsoft-Windows-TaskScheduler%4Operational.evtx. - On a domain controller or server, logs specific to the installed roles:
Directory Service.evtx,DNS Server.evtx,DFS Replication.evtx.
Risks and best practices
- The
EventLogservice holds these files open. Deleting them by hand wipes diagnostic and audit history. To clear or archive a log, use Event Viewer (“Save All Events As…”, “Clear Log”) orwevtutil. - Tune each log’s maximum size and retention (log properties or Group Policy) instead of purging the folder.
- Security logs hold account names and addresses, so protect any copies.
Useful commands
# The 15 largest log filesGet-ChildItem "$env:windir\System32\winevt\Logs" -Force | Sort-Object Length -Descending | Select-Object -First 15 Name, Length, LastWriteTime
# Maximum size and retention of the System logwevtutil gl SystemFolder contents
Logs 18
- Application.evtxApplication log: events raised by applications and some components (errors, warnings…
- DFS Replication.evtxDFS Replication log: events from the DFS Replication service, including SYSVOL…
- Directory Service.evtxDirectory Service.evtx: the Active Directory Domain Services log of a domain controller…
- DNS Server.evtxDNS Server log: Windows Server DNS service events (startup, zone loading, replication and…
- ForwardedEvents.evtxForwarded Events log: default destination for events collected from other computers by a…
- Microsoft-Windows-GroupPolicy%4Operational.evtxMicrosoft-Windows-GroupPolicy%4Operational.evtx: the Group Policy client's Operational…
- Microsoft-Windows-PowerShell%4Operational.evtxPowerShell%4Operational.evtx: the log of what Windows PowerShell executed (script blocks…
- Microsoft-Windows-PrintService%4Operational.evtxPrintService/Operational log, disabled by default: one 307 entry per printed document…
- Microsoft-Windows-TaskScheduler%4Operational.evtxTaskScheduler%4Operational.evtx: Task Scheduler log (task start, end, creation and…
- Microsoft-Windows-TerminalServices-LocalSessionManager%4Operational.evtxRDP LocalSessionManager/Operational log: session logon (21), logoff (23), disconnect (24)…
- Microsoft-Windows-TerminalServices-RemoteConnectionManager%4Operational.evtxRDP RemoteConnectionManager/Operational log: event 1149 (network authentication…
- Microsoft-Windows-Windows Defender%4Operational.evtxWindows Defender/Operational log: detections (1116, 1117), signature updates (2000, 2001)…
- Microsoft-Windows-Windows Firewall With Advanced Security%4Firewall.evtxWindows Firewall log (Firewall channel): rule added (2004), modified (2005) and deleted…
- Microsoft-Windows-WindowsUpdateClient%4Operational.evtxMicrosoft-Windows-WindowsUpdateClient/Operational log: update installation history (event…
- Security.evtxSecurity log: audit events (sign-ins, object access) driven by the audit policy.
- Setup.evtx"Setup" event log: installation and configuration of Windows components (updates, roles…
- System.evtxSystem log: events from the kernel, drivers and Windows services, viewed in Event Viewer.
- Windows PowerShell.evtxClassic "Windows PowerShell" log: engine and provider lifecycle and, if enabled, module…