Brian's correct that the times are stored in GMT, but they're rolled
over at midnight local time (which means - yes - in Microsoft's infinite
wisdom that unless your local time is GMT then you get a crossover of
times in each log file).

To the originator's question, this is from our extensive testing:

  The logfile is rolled over on the first hit after the rollover
  boundary. Ie. if you set it for daily rollover but you don't get a
  hit until 1:30am then the previous day's logfile will stay open until
  that time. When that hit comes in the rollover happens and the new
  logfile gets the new hit.

What we do on all our servers is have a little scheduled task running
that just hits the servers at 00:01 (we give them a minute in case
they're slightly behind time), this forces the rollover to happen even
on servers where there is low activity.

Then we have a push job that runs at 01:00 or something which pushes the
previous day's logfile to our stats server for processing.

-- 
  Jason King


>-----Original Message-----
>From: K. Brian Kelley [mailto:[EMAIL PROTECTED]] 
>Sent: Tue, 3 Dec 2002 21:45
>To: Perl-Win32-Admin List
>Subject: RE: getting IIS Logs
>
>
>Unless I'm mistaken, when GMT rolls over to a new day, IIS 
>rolls over to a
>new log file. The times in IIS log files, event log entries, etc., are
>actually stored based on GMT.
>
>Brian
>
>K. Brian Kelley, [EMAIL PROTECTED]
>Author of Start to Finish Guide to SQL Server Performance Monitoring
>SQL Server Central Columnist
>http://www.truthsolutions.com
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of
>> [EMAIL PROTECTED]
>> Sent: Tuesday, December 03, 2002 4:54 AM
>> To: [EMAIL PROTECTED]
>> Subject: getting IIS Logs
>>
>>
>> Hi,
>>
>> I want to fetch the logfiles of some IIS servers. I will either
>> use a simple
>> scripted ftp batch or create a perl service for that. My problem
>> though is,
>> I don't know when IIS rotates its logs when it's set to "daily".
>> Maybe even
>> better would be a force to rotate them?
>> Any ideas?
>>
>>
>> Lars
>> _______________________________________________
>> Perl-Win32-Admin mailing list
>> [EMAIL PROTECTED]
>> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to