Hello Friends - I am seeking your help in understanding why the timestamp shown in Logs differ from Router Clock set thru NTP. Here is my observation
Note: both the routers are SYNC with NTP server at Strarum 3
service timestamps log datetime msec localtime
here log messages (show log output) matches with Clock (show clock)
service timestamps log datetime msec
here log messages (show log output) doesn't matches with Clock (show clock). There is some difference of +3hrs 20 minutes (additional in Log message timestamp)
May i know from where the logs assumes the time in Router-2 ? I am not seeing this time in NTP
Thanks in advance
If you enter "service timestamps log datetime localtime", then you see local time (that is CDT).
If you omit "localtime", then time is shown for UTC (5 hours later than CDT); so the event happend at 15:44:31 UTC = 10:44:31 CDT.
PS: for multinational companies it's a best practice to keep routers' clock in UTC (and timestamps as well).