Change time that is recorded in the log files from GMT to current
am 09.11.2007 15:06:00 von spinkid
I am sure there is a very good reason why the log files all use GMT time when
recording in IIS log files however it is a royally pain to always convert it.
Is there a way to make it so that it time stamps the serversâ current time
instead of using GMT time inside the log file? I know that I can change the
time when it creates a new log file to the current time but I want to change
the time inside to the current time so I don't have to remember to that GMT
time is 5 - 8 hours different from my current time. The operating system is
Windows 2003 and 2000. Thanks.
Re: Change time that is recorded in the log files from GMT to current
am 09.11.2007 16:21:03 von .._..
Yes.
But, you'd probably have to use something like Perl go to in and edit all
the files.
WHY are you converting? Any log file analysis tool worth a hill of beans
will do the conversion for you.
"spinkid" wrote in message
news:F1F2E85D-B8D4-4A30-B11B-207439967818@microsoft.com...
>I am sure there is a very good reason why the log files all use GMT time
>when
> recording in IIS log files however it is a royally pain to always convert
> it.
> Is there a way to make it so that it time stamps the servers' current time
> instead of using GMT time inside the log file? I know that I can change
> the
> time when it creates a new log file to the current time but I want to
> change
> the time inside to the current time so I don't have to remember to that
> GMT
> time is 5 - 8 hours different from my current time. The operating system
> is
> Windows 2003 and 2000. Thanks.
Re: Change time that is recorded in the log files from GMT to curr
am 09.11.2007 16:41:03 von spinkid
I am not trying to analysis the entire log file. If i want to fine something
that happened at 5PM I have to convert GMT time to CST time to fine the line
in the log file (MSFTP logs). I would perfer not have to convert GMT time to
CST time to look at that specific period of time if you know what I mean.
".._.." wrote:
> Yes.
>
> But, you'd probably have to use something like Perl go to in and edit all
> the files.
>
> WHY are you converting? Any log file analysis tool worth a hill of beans
> will do the conversion for you.
>
> "spinkid" wrote in message
> news:F1F2E85D-B8D4-4A30-B11B-207439967818@microsoft.com...
> >I am sure there is a very good reason why the log files all use GMT time
> >when
> > recording in IIS log files however it is a royally pain to always convert
> > it.
> > Is there a way to make it so that it time stamps the servers' current time
> > instead of using GMT time inside the log file? I know that I can change
> > the
> > time when it creates a new log file to the current time but I want to
> > change
> > the time inside to the current time so I don't have to remember to that
> > GMT
> > time is 5 - 8 hours different from my current time. The operating system
> > is
> > Windows 2003 and 2000. Thanks.
>
>
>
Re: Change time that is recorded in the log files from GMT to current
am 10.11.2007 02:40:10 von David Wang
On Nov 9, 6:06 am, spinkid wrote:
> I am sure there is a very good reason why the log files all use GMT time when
> recording in IIS log files however it is a royally pain to always convert it.
> Is there a way to make it so that it time stamps the servers' current time
> instead of using GMT time inside the log file? I know that I can change the
> time when it creates a new log file to the current time but I want to change
> the time inside to the current time so I don't have to remember to that GMT
> time is 5 - 8 hours different from my current time. The operating system is
> Windows 2003 and 2000. Thanks.
The reason the default log format used in IIS, W3C, has time in GMT is
because that's what the public W3C specification says.
If you want IIS log files to have time in local timezone, use non-
public standard one, like IIS Log format.
Personally, I think it is a terrible idea to use local timezone as
timestamp in a log file because it makes it impossible to aggregate
and synchronize log files from two IIS servers in different time
zones. I do not see why it is a royal pain to convert or remember GMT
offset. It is a requirement in this global economy.
If you are opening the IIS log file directly and thus wanting the
timestamp to be in local time, then I recommend that you stop doing
that. I recommend that you use any free log analysis tool or even
LOGPARSER to slice/dice/analyze IIS log data -- and they all convert
timestamps to local time with tons of functionality.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//