Microsoft Knowledge Base Email Alertz

Discusses a problem in IIS 6.0 that occurs when entries are logged to a log file immediately before a new log file is created. Entries may be logged to the previous log file instead of the new log file.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 842492 - Last Review: December 3, 2007 - Revision: 1.3

Entries may be logged in the incorrect log file after a new log file is created in Internet Information Services (IIS) 6.0

SYMPTOMS

When you configure logging for a Web site or for an FTP site in Microsoft Internet Information Services (IIS) 6.0, some entries may not be written to the correct log file after a new log file is created. For example, if you specify a log schedule so that a new log file is created every day at 4:00 P.M., an entry for site activity that occurred at 3:59 P.M. may be incorrectly logged in the new log file.

CAUSE

This problem occurs if the following conditions are true:
  • The schedule for creating new log files is configured to use one of the following options:
    • Hourly
    • Daily
    • Weekly
    • Monthly
  • The Web server is working under a heavy load immediately before the new log file is created. For example, this problem occurs if heavy site activity occurs approximately one second before the new log file is scheduled to be created.

WORKAROUND

To work around this problem, use one of the following methods:
  • Schedule the new log file to be created during a time when less Web site activity or FTP site activity is expected.
  • Use the Log Parser tool to open the log files, and then convert the data that the log files contain. With the Log Parser tool, you can create new log files that contain the correct entries or merge the correct entries into the correct log files. Log Parser 2.1 is included in the IIS 6.0 Resource Kit. For more information about the IIS 6.0 Resource Kit, visit the following Microsoft Web site:
    http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en)
  • Use the When file size reaches option. When you use this option, a new log file is created when the current log file reaches the size that you specify. To configure the log schedule to use the When file size reaches option, follow these steps:
    1. Start IIS Manager.
    2. Expand ServerName, expand Web Sites or FTP Sites, right-click the site that you want to configure, and then click Properties.
    3. Click the Web Site tab or the FTP Site tab, and then click Properties.
    4. Under New log schedule, click When file size reaches, specify the log file size that you want in megabytes (MB), and then click OK two times.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For more information about how to configure logging in IIS, see the "Logging Site Activity" topic in the IIS 6.0 documentation. To view the IIS 6.0 documentation, visit the following Microsoft Web site:
http://technet2.microsoft.com/WindowsServer/en/library/bd33bd8c-321a-4c28-8cb9-92ecc1b3b4381033.mspx?mfr=true (http://technet2.microsoft.com/WindowsServer/en/library/bd33bd8c-321a-4c28-8cb9-92ecc1b3b4381033.mspx?mfr=true)

APPLIES TO
  • Microsoft Internet Information Services 6.0
Keywords: 
kbtshoot kbprb KB842492
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate