04-08-2022 02:54 AM
Hi
someone know which time is set on Logging logs?
I think that it sets time of Greenwich time zone. Is it true?
Marco
04-08-2022 03:12 AM
By default, it is UTC/GMT/Zulu.
04-08-2022 03:16 AM
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]
04-10-2022 01:07 AM
Hi
Clock time zone is setted +1
but logging show gmt hour
04-10-2022 03:43 AM
post the information of the config and log file to understand the issue.
04-10-2022 09:09 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide