cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
692
Views
0
Helpful
5
Replies

Time of Logging

Marcogiraldo86
Level 1
Level 1

Hi

someone know which time is set on Logging logs?

I think that it sets time of Greenwich time zone. Is it true?

 

Marco

5 Replies 5

Leo Laohoo
Hall of Fame
Hall of Fame

By default, it is UTC/GMT/Zulu.

balaji.bandi
Hall of Fame
Hall of Fame

depends on the time zone setup on the device.

 

show run | in tme

 

example  as below :

 

#show run | in time
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
clock timezone GMT 0 0
clock summer-time BST recurring last Sun Mar 1:00 last Sun Oct 2:00

 

you see log as below

 

017859: Apr 8 11:14:47.986 BST: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: XXXXXXXXX]

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi

Clock time zone is setted +1

but logging show gmt hour

post the information of the config and log file to understand the issue.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Marco

As @balaji.bandi has suggested there are 2 aspects involved in this question.

1) setting the clock for the device (using clock timezone and clock summer-time)

2) setting the timestamp used in log messages (using  service timestamps log)

both of these are necessary is the log messages are to have appropriate and accurate time stamp.

HTH

Rick
Review Cisco Networking products for a $25 gift card