Time of Logging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2022 03:12 AM
By default, it is UTC/GMT/Zulu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2022 01:07 AM
Hi
Clock time zone is setted +1
but logging show gmt hour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2022 03:43 AM
post the information of the config and log file to understand the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Rick
