Re: Log rotation time LONG

by "Kathy Evans" <kje(at)vendetta.co.uk>

 Date:  Wed, 2 May 2001 08:49:24 +0100
 To:  "Marius Zydyk" <pod(at)null.net>,
"Hwg-Servers \(E-mail\)" <hwg-servers(at)hwg.org>
 References:  cadvision
  todo: View Thread, Original
This is what MS say:

PSS ID Number: Q271196
Article last modified on 10-21-2000

winnt:4.0,5.0

=========================================
------------------------------------------------------------------------
-------
The information in this article applies to:

 - Microsoft Internet Information Server 4.0
- Microsoft Internet Information Services version 5.0
------------------------------------------------------------------------
-------

SYMPTOMS
========

The date and time stamp on entries in the IIS log files are incorrect by
several
hours.

CAUSE
=====

The selected log file format is the W3C Extended Log File Format. The
extended
log file format is defined in the W3C Working Draft WD- logfile-960323
specification by Phillip M. Hallam-Baker and Brian Behlendorf. This
document
defines the Date and Time files to always be in GMT. This behavior is by
design.

RESOLUTION
==========

To resolve this problem, use one of the following resolutions:

Resolution 1:

Change the active logging format to the Microsoft IIS Log File Format.
This
format logs in the server's Local Time.

Resolution 2:

Use the Convlog.exe utility, which is located in the Winnt\System32
folder, to
convert the log to the NCSA Log File Format and server's local time. At
a
command prompt, type the following:

   convlog -ie LogFileName -t ncsa:+/-GMTOffset

where LogFileName is the name of the file to convert and GMTOffset is
the number
of hours to correct.

For example, to convert a file named "Logfile.log," and correct for
Eastern
Standard Time, you would use the following command:

   convlog -ie Logfile.log -t ncsa:-0500

You can find complete instructions on how to use the Convlog utility in
the IIS
online documentation.

NOTE: This solution does not actually change the time stamps for the log
entries.
It enters the GMT offset into each entry, so that anyone reading through
the log
can see that the time stamp is not in local time.

The following is an example of a log entry produced by this utility:

   192.168.1.1 - - [30/Jun/2000:20:16:40 -0500] "GET /default.asp
HTTP/1.0" 200
  -

MORE INFORMATION
================

For more information on the extended log file format, see the W3C
Working Draft
WD-logfile-960323 specification at the following URL:

   http://www.w3.org/TR/WD-logfile (http://www.w3.org/TR/WD-logfile)

For additional information, click the article numbers below to view the
articles
in the Microsoft Knowledge Base:

   Q194699 Extended Log File Format Always in GMT

   Q193612 Log Files Rolled Over According to GMT, Not Local Time Zone

Additional query words:

======================================================================
Keywords          :
Version           : winnt:4.0,5.0
Issue type        : kbprb
Solution Type     : kbpending
========================================================================
=====
Copyright Microsoft Corporation 2000.




----- Original Message -----
From: "Marius Zydyk" <pod(at)null.net>
To: <hwg-servers(at)hwg.org>
Sent: 01 May 2001 09:17
Subject: Re: Log rotation time


> IIS rotates log files at midnight GMT. Ours rotates them at 6 pm
local. I
> would be interested in knowing how to change this (without 3rd party
> addons), so if anyone knows please post. MZ
>
> At 00:00 05/01/2001 -0400, Susan Duncan wrote:
> >I'm running IIS4 and most of our websites are set to rotate
> >logfiles weekly.  I've noticed that the server has picked
> >8pm as the rotation time.  While this doesn't usually matter
> >much, it does mean that when it rotates them at the end of
> >the month, there is about 4 hours worth of log information
> >that doesn't show up on the web reports if we just take the
> >logs that were dated for that month.
> >
> >Is this something intrinsic to IIS or is there a setting
> >somewhere that I missed?
> >
> >--
> >           Making the Web Work for You (tm)
> >Susan Duncan (sduncan(at)malico.com) Voice: (613) 744-3283
> >Director, Internet Development      Fax: (613) 744-1825
> >http://www.malico.com         Toll Free: (877) WEB-PROS
> >http://www.OttawaWEB.COM
> >MALICO - Graphic Design and Internet Development
> >Founders: Ottawa-Hull Chapter-Int'l Webmasters Association
> >"Top 50 Web Development Companies in Canada" - Branham
> >Report/National Post
>
> --
>    Marius Zydyk -- pod(at)null.net -- http://www.domainofdarkness.com/
>
>

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.