Solved

timestamp problem about IIS log file

Posted on 2004-10-26
470 Views
Last Modified: 2010-08-05
In our IIS Web server, one web site has Enable Logging selected. So all requests to IIS server are logged.

My question is why the log file has the records with timestamp later than when I copied the log file.  I copied the log file at 3pm and found records with 9pm timestamp in the copied file.  So I lost the trust in the accuricy of the timestamp, which is a important factor for my analysis.

I checked the server time it is correct.

Please help.

Biang
0
Question by:Jinghui Li
    7 Comments
     
    LVL 9

    Expert Comment

    by:BigC666
    howdy,

    are the two machine in sync as far as time?
    0
     
    LVL 20

    Accepted Solution

    by:
    Hi
    This is worth checking out,
    IIS Log File Entries Have the Incorrect Date and Time Stamp
    http://support.microsoft.com/?kbid=271196

    Deb :))
    0
     
    LVL 14

    Assisted Solution

    by:alimu
    All IIS logfiles (W3SVC, SMTP, FTP, NNTP) are in GMT time.  This cannot be changed.

    eg: My local timezone is GMT+10 so I need to add 10 hours to the log timestamp to figure out local time.

    IIS 5+ allow you to use midnight your time for rollover to a new day's logfile but that's about the limit of what you can do.

    If you are doing log analysis with the files you will need to adjust the timestamps in your database to the local time to graph out usage correctly. (don't forget to adjust the dates accordingly as well).  Most log analysis tools will do this for you.
    0
     
    LVL 20

    Expert Comment

    by:Debsyl99
    I already said that in my link Alimu if you read it - what is it with people duplicating my posts tonight??? Please read other's answers before posting,

    "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. ""
    0
     
    LVL 14

    Expert Comment

    by:alimu
    actually I did read your post, you didn't provide detail but posted a link to another site which is neither here nore there.  It is useful for at least a brief summary to be included on experts exchange so that it is added to the knowledge base - that was my intent, as far as points go, they're all yours and apologies if I caused offense.
    0
     
    LVL 20

    Expert Comment

    by:Debsyl99
    Hi Alimu
    You didn't cause offense - but by the time I got to the email from your post I had had a number of people saying pretty much exactly what I had already said so my patience had worn thin - I hope you didn't find my comment offensive as that wasn't my intent so apologies, as I enjoy working with other experts very much, rather than against them - lots more fun and much more constructive for all of us. At the end of the day the ultimate aim is to help and avoid (hopefully) costly tech support for people as this site can be such a mine of valuable information for all of us. Hopefully we're now cool ;-))

    Deb :))
    0
     
    LVL 14

    Expert Comment

    by:alimu
    no problem was just trying to pad out the detail for benefit of knowledge base. (and on a normal day I can also spell the word "nor" - doing well :)   )
    cheers,
    AJ.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now