|
Home > Archive > IIS Server > August 2004 > date/time settings within IIS logs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
date/time settings within IIS logs
|
|
| Westley 2004-08-25, 6:00 pm |
| Is there a way to force IIS logs to write its entries
using the server's local time instead of GMT time?
| |
| Alexis Eller [Msft] 2004-08-27, 6: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?
| |
| Ken Schaefer 2004-08-27, 6: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?
|
|
|
|
|