date/time settings within IIS logs
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server > date/time settings within IIS logs




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    date/time settings within IIS logs  
Westley


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 11:00 PM

Is there a way to force IIS logs to write its entries
using the server's local time instead of GMT time?





[ Post a follow-up to this message ]



    Re: date/time settings within IIS logs  
Alexis Eller [Msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:18 PM

Westley,

W3C log file format, which is the default log file format, is always written
out using GMT.  There's no way to change this.  The IIS log file format is
written out in local time though, so your best bet might be to just change
your log file format.  To do this, right-click on your web site and select
Properties, go to the Web Site tab, and select "Microsoft IIS Log File
Format" from the drop-down menu at the bottom of the tab.

If you like W3C format and don't want to change, then you can always do some
timestamp manipulation using Log Parser.  Here are a few useful links:
How to get the IIS 6.0 Resource Kit Tools, which include Log Parser:
http://www.microsoft.com/downloads/...&DisplayLang=en
How to work with timestamps:
http://www.logparser.com/InstantKB/...e.aspx?id=10044

cheers,
alexis

"Westley" <anonymous@discussions.microsoft.com> wrote in message
news:02f901c48aed$3c83a840$a301280a@phx.gbl...
> Is there a way to force IIS logs to write its entries
> using the server's local time instead of GMT time?







[ Post a follow-up to this message ]



    Re: date/time settings within IIS logs  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:18 PM

If you are using W3C Extended logging, then you can't. The W3C extended
logging spec calls for times to be in GMT. This avoids problems when you
have daylight savings etc.

You can have IIS roll over the logfiles at midnight local time if you want
(there's a checkbox for that in the properties for the website)

You web log analyser software should be able to compensate for you.

Cheers
Ken

"Westley" <anonymous@discussions.microsoft.com> wrote in message
news:02f901c48aed$3c83a840$a301280a@phx.gbl...
> Is there a way to force IIS logs to write its entries
> using the server's local time instead of GMT time?







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register