Specify the maximum log file size (KB)
Supported on: At least Windows Vista
Registry
HKLM
Software\Policies\Microsoft\Windows\EventLog\Security Options
MaxSize decimal
- range 20480-2147483647 Description
This policy setting specifies the maximum size of the log file in kilobytes. If you enable this policy setting, you can configure the maximum log file size to be between 20 megabytes (20480 kilobytes) and 2 terabytes (2147483647 kilobytes), in kilobyte increments. If you disable or do not configure this policy setting, the maximum size of the log file will be set to the locally configured value. This value can be changed by the local administrator using the Log Properties dialog, and it defaults to 20 megabytes.