IIS log time is GMT

Source: Internet
Author: User

When troubleshooting, you will find that the IIS log time is different from the local time on the server.

 

The Time Zone of IIS log is GMT. Note that the China time zone is GMT + 8.

 

Therefore, to view IIS logs in China, you need to add + 8 to IIS logs to know the local time of the server.

 

When using log parser, you can use the following example to convert the Time of the returned result.

Logparser "selectTo_timestamp(Date, time)UTC-Timestamp,To_localtime(UTC-Timestamp) As local-timestamp, C-IP, CS-username, extract_token (CS-Uri-stem,-1 ,'/') as filename into DataGrid from \ webserver \ ADMIN $ \ system32 \ logfiles \ w3svc1 \ ex07 *. log"

 

References:

IIS log file entries have the incorrect date and time stamp

Http://support.microsoft.com/default.aspx? SCID = KB; en-US; q271196

Thread: Converting IIS log time to local time

Http://forums.iis.net/t/1145241.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.