Change Windows Event Log Size Using Regedit
This guide explains how to configure the maximum file size for Windows event logs using the Windows Registry Editor (Regedit). By adjusting these registry values, administrators can allocate more storage to retain critical log history for auditing or reduce size limits to conserve system disk space.
Prerequisites
- Administrator privileges on the target Windows machine.
- A basic understanding of the Registry Editor
(
regedit.exe).
Step-by-Step: Configure Classic Event Logs
Classic Windows logs—such as Application,
Security, and System—are managed
directly under the Services\EventLog key.
1. Open the Registry Editor
- Press
Win + Rto open the Run dialog. - Type
regeditand press Enter. - Click Yes if prompted by User Account Control (UAC).
2. Navigate to the EventLog Key
In the address bar, paste or navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog
3. Select the Target Log
Expand the EventLog key and select the subkey for the
log you want to modify: * Application *
Security * System * Setup
4. Modify the MaxSize
Value
- In the right-hand pane, locate and double-click the
MaxSizeREG_DWORDvalue. (If it does not exist, right-click an empty area, select New > DWORD (32-bit) Value, and name itMaxSize). - Under Base, select Decimal.
- Enter the desired maximum file size in bytes.
- Note: The value must be a multiple of 64 KB (65,536 bytes).
- Examples:
20971520= 20 MB (Default for standard logs)52428800= 50 MB104857600= 100 MB1073741824= 1 GB
- Click OK.
Step-by-Step: Configure Modern/Application-Specific Event Logs
For specific modern event channels (e.g., PowerShell, TaskScheduler, or Microsoft-Windows logs):
In the Registry Editor, navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\ChannelsLocate the specific channel name (e.g.,
Microsoft-Windows-PowerShell/Operational).Expand the channel key and select the
ChannelPropertiessubkey.Double-click the
MaxSizeREG_DWORDvalue.Select Decimal, enter the desired size in bytes, and click OK.
Applying the Changes
Registry changes to standard Windows event logs typically take effect
immediately, but restarting the Windows Event Log
service (eventlog) or rebooting the machine ensures that
the new size restrictions are fully applied.