SUMMARY
This article shows you how to translate log file preferences from Apache to Microsoft Internet Information Services (IIS), how to view log files that are generated by IIS, and how to report on the information that is contained in those log files.
back to the top
Translate Log File Preferences
With Apache, you can control only two elements of the logging system, the location of the log files generated, and the log file format. With IIS, you have more control over the log file format, location, and rotation.
back to the top
Set the Log File Folder
As with Apache, with IIS you can use a separate folder and location for each Web site where you want to log activity.
To set the folder to use for logging Web site activity:
- Log on to the Web server computer as Administrator.
- Click Start, point to Settings, and then click Control Panel.
- Double-click Administrative Tools, and then double click Internet Services Manager.
- In the left pane, click the Web site in the list of served sites.
- Right-click the Web site, and then point to Properties.
- Click the Website tab.
- Click to select the Enable Logging check box.
- Click Properties to open the extended properties dialog box.
- Click the General Properties tab.
- Change the Log file folder to the location that you want to use.
back to the top
Setting the Log File Format
To change the log file format, follow the steps in the following Knowledge Base article:
313437 HOW TO: Enable Logging in IIS 5.0
back to the top
Set the Log File Rotation
A benefit of IIS is that you can configure how regularly the log files are rotated, that is, how long it takes before a new log file is created. With Apache, you must perform this process manually or through an external script, and then you have to restart Apache. In IIS, you can configure a new log to be created during any time period (daily, weekly, monthly) or when a log file has reached a particular size.
- Log on to the Web server computer as Administrator.
- Click Start, point to Settings, and then click Control Panel.
- Double-click Administrative Tools, and then double click Internet Services Manager.
- In the left pane, click the Web site in the list of served sites.
- Right-click the Web site, and then point to Properties.
- Click the Website tab.
- Click to select the Enable Logging check box.
- Click Properties to open the extended properties dialog box.
- Click the General Properties tab.
- Select the New Log Time Period setting for your Web log. The setting that you select defines how frequently new logs are created.
back to the top
Find or View Log Files
To find or view the log files that are generated by IIS, you must locate the folder that is used to store these files. To find the folder and location for a log file, follow these steps:
- Log on to the Web server computer as Administrator.
- Click Start, point to Settings, and then click Control Panel.
- Double-click Administrative Tools, and then double-click Internet Services Manager.
- Select the Web site from the list of different served sites in the pane on the left.
- Right-click the Web site, and then point to Properties.
- Select the Website tab.
- Click Properties to open the extended properties dialog box.
- Click the General Properties tab.
View the bottom of the window. IIS displays the format and location of the log files that are generated. You can open and view the file and viewed with WordPad, Microsoft Word, or another text file viewer.
back to the top
Log File Reporting
If you are using an existing program for reporting on your Web logs under Unix/Apache, and if you have not changed the generated log format from the default W3C Extended Log Format, you should be able to continue using the same tool for your reporting process.
If you are not currently using a tool, or you want to use a custom format for your reporting, you have to use a separate program. Some examples include:
- Analog
- Seagate Crystal Reports
back to the top