Set Maximum Log Size
Applies To: Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows Vista
Event logs are stored in files. These files have a default maximum size, which you can change. You can perform this procedure by using the Windows interface or a command line.
To set maximum log size by using the Windows interface
Start Event Viewer.
In the console tree, navigate to and select the event log you want to manage.
On the Action menu, click Properties .
In Maximum log size (KB) , use the spinner control to set the value you want and click OK .
Note
Log size must be a multiple of 64KB and cannot be smaller than 1024KB. If you type a log size rather than use the spinner control, it will be rounded to the nearest multiple of 64KB.
To set maximum log size by using a command line
To open a command prompt, click Start , click Run , type cmd , and click OK .
Type the following command:
wevtutil sl <LogName> /ms:<MaxSizeInBytes>
To view the complete syntax for this command, type the following at a command prompt:
wevtutil sl -?
Additional considerations
You must be a member of the Administrators group to set a maximum log size.
If you set a maximum log size that is smaller than the current size of the log, the maximum size will not be enforced until after the log is cleared.