log timestamps aren't the same as system/device time

Answered Question
Jan 25th, 2010

i have a few devices, switches and routers, that when i do a "sh logg" the time stamp is different than the time the router has.

does anyone have a suggestion on how to fix this?

i pasted a quick example of what i'm talking about.

Jan 25 20:20:48.075: %SYS-5-CONFIG_I: Configured from console by grivers on vty1
Jan 25 20:22:49.659: %SYS-5-CONFIG_I: Configured from console by grivers on vty1
Jan 25 20:29:29.661: %SYS-5-CONFIG_I: Configured from console by grivers on vty1
KWCHSW27#sh cloc
14:34:10.545 Central Mon Jan 25 2010
KWCHSW27#

Thanks, Gary

I have this problem too.
0 votes
Correct Answer by Giuseppe Larosa about 6 years 11 months ago

Hello Gary,

adding the local-time option at the end of

service timestamps log|debug datetime

can be of help

Hope to help

Giuseppe

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Giuseppe Larosa Mon, 01/25/2010 - 12:42

Hello Gary,

adding the local-time option at the end of

service timestamps log|debug datetime

can be of help

Hope to help

Giuseppe

tcrane8080 Mon, 01/25/2010 - 12:48

Thanks for the advice...

i tried both cmds but neither one corrected the time stamp.

i pasted an example of the output,

Jan 25 20:45:17: %SYS-5-CONFIG_I: Configured from console by grivers on vty0
6d22h: %SYS-5-CONFIG_I: Configured from console by grivers on vty0
Jan 25 20:46:13: %SYS-5-CONFIG_I: Configured from console by grivers on vty0
KWCHSW27#  sh clock
14:46:26.929 Central Mon Jan 25 2010
KWCHSW27#

it looks like the log is showing UTC.

tcrane8080 Mon, 01/25/2010 - 12:53

i re-read your reply and added "localtime" to the "service timestamps log datetime" cmd and it worked.

Thanks for your help.  Gary 

Actions

This Discussion