HOW TO: View and Report from Log Files (324091)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Small Business Server 2000
  • Microsoft Internet Information Services 5.0

This article was previously published under Q324091

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:
  1. Log on to the Web server computer as Administrator.
  2. Click Start, point to Settings, and then click Control Panel.
  3. Double-click Administrative Tools, and then double click Internet Services Manager.
  4. In the left pane, click the Web site in the list of served sites.
  5. Right-click the Web site, and then point to Properties.
  6. Click the Website tab.
  7. Click to select the Enable Logging check box.
  8. Click Properties to open the extended properties dialog box.
  9. Click the General Properties tab.
  10. 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.
  1. Log on to the Web server computer as Administrator.
  2. Click Start, point to Settings, and then click Control Panel.
  3. Double-click Administrative Tools, and then double click Internet Services Manager.
  4. In the left pane, click the Web site in the list of served sites.
  5. Right-click the Web site, and then point to Properties.
  6. Click the Website tab.
  7. Click to select the Enable Logging check box.
  8. Click Properties to open the extended properties dialog box.
  9. Click the General Properties tab.
  10. 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:
  1. Log on to the Web server computer as Administrator.
  2. Click Start, point to Settings, and then click Control Panel.
  3. Double-click Administrative Tools, and then double-click Internet Services Manager.
  4. Select the Web site from the list of different served sites in the pane on the left.
  5. Right-click the Web site, and then point to Properties.
  6. Select the Website tab.
  7. Click Properties to open the extended properties dialog box.
  8. 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

REFERENCES

For additional information about how to perform maintenance tasks after a UNIX to Windows migration, click the article number below to view the article in the Microsoft Knowledge Base:

324539 How TO: Perform Maintenance and Ancillary Tasks After a UNIX to Windows Migration


back to the top









Modification Type:MinorLast Reviewed:7/15/2004
Keywords:kbhowto kbHOWTOmaster KB324091 kbAudITPro