Set the "use local time for file naming and rollover" to checked but still does not workRSS

3 replies

Last post Feb 20, 2020 03:29 PM by Rovastar

  • Set the "use local time for file naming and rollover" to checked but still does not work

    Feb 20, 2020 11:54 AM|b.dev|LINK

    The server that IIS works in has 3 Hours difference with UTC time. I wanted IIS logs to be in server time, so I checked "use local time for file naming and rollover" but still the logs are 3 hours behind the server time. 

    What is the solution ? 

  • Rovastar Rovastar

    5482 Posts

    MVP

    Moderator

    Re: Set the "use local time for file naming and rollover" to checked but still does not work

    Feb 20, 2020 01:45 PM|Rovastar|LINK

    What you have checked is likely working as intended. You are changed the filename and when it rollsover.

    The contents of the log file itself you can't change if in normal W3C format as the standard for that is for GMT time. If you changed it to other formats I believe they will be in local system time.

    Troubleshoot IIS in style
    https://www.leansentry.com/
  • Re: Set the "use local time for file naming and rollover" to checked but still does not work

    Feb 20, 2020 02:35 PM|b.dev|LINK

    Hi

    Currently it is in W3C format. Is there any way for me to have it in local time ? for example when I use logparser to view the logs, I want to see the recent logs, and not far behind the time server. 

  • Rovastar Rovastar

    5482 Posts

    MVP

    Moderator

    Re: Set the "use local time for file naming and rollover" to checked but still does not work

    Feb 20, 2020 03:29 PM|Rovastar|LINK

    LIke I say W3C is in GMT. That is what the standard is in.

    https://www.w3.org/TR/WD-logfile.html

    And it is what many webservers will use.

    If you waat to use another log format then you can and they can be in local time but W3C is by far the standard.

    IF you want to use logparser you can change the display format of the logs to offset the time.

    Like here:

    https://forums.iis.net/t/1145241.aspx?Converting+IIS+Log+Time+to+Local+Time

    Troubleshoot IIS in style
    https://www.leansentry.com/