Default IIS logs time zone is Coordinated Universal Time (UTC) or Greenwich Mean Time (GMT). It is because the default file format for IIS logs are W3C. Every site have its own log folder for IIS logs. Default locations are:
- IIS Logs: C:\inetpub\logs\LogFiles
- HTTP API error logging C:\Windows\System32\LogFiles\HTTPERR
File Format:
Various IIS log file formats are:
- World Wide Web Consortium (W3C) Format : UTC time zone
- Internet Information Services (IIS) Format : Local time zone
- NCSA Format : Local time zone
Change Logging:
To change the time zone, select the site in the IIS Manager and double clink on the Logging feature icon in the middle window pane. It will load the windows similar to the below image. Select the desired log file format to change the logging time zone.
For example: Select IIS instead of W3C if you want to see the logs in local time zone. I will also show you the log file directory.
Additionally, you will also have an option to select logs rollover.
Thanks.
No comments:
Post a Comment