Configure Log File Rollover Options (IIS 7)
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
Configure log file rollover options when you want to control the length of time that log file data is stored on the server.
For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required to perform this procedure, see Logging Feature Requirements (IIS 7).
Exceptions to feature requirements
To configure log file rollover options
You can perform this procedure by using the user interface (UI), or by editing configuration files directly.
To use the UI
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
In Features View, double-click Logging.
On the Logging page, in the Log File Rollover section, select one of the following options:
Schedule: to create new log file that are based on one of the following values:
Hourly: a new log file is created each hour.
Daily: a new log file is created each day.
Weekly: a new log file is created each week.
Monthly: a new log file is created each month.
Maximum file size (in bytes): to create a new log file when the file reaches a certain size (in bytes).The minimum file size is 1048576 bytes. If this attribute is set to a value less than 1048576 bytes, the default value is implicitly assumed as 1048576 bytes.
Do not create a new log file: This means that there is a single log file that will continue to grow as information is logged. If you use a single log file for your site, it may be helpful when you use log parsing utilities, but it may also create larger log files that could affect the overall performance of the server.
Select Use local time for file naming and rollover to specify that log file naming and time for log file rollover uses the local server time. When this is not selected, Coordinated Universal Time (UTC) is used.
Regardless of this setting, timestamps in the actual log file will use the time format for the log format that you select from the Format list. For example, NCSA and W3C log file formats use UTC time format for timestamps.
- Click Apply in the Actions pane.
The procedure in this topic affects the following configuration elements:
For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.
Configuring Logging in IIS 7
Configure Per-Site Logging Options at the Server Level (IIS 7)
Configure Logging Options at the Site Level (IIS 7)
Configure Per-Server Logging Options (IIS 7)
Select W3C Fields to Log (IIS 7)