On a Ciscio IOS device when you view the logs or the debug logs the date and time is not displayed

If when you run show logging or try to view the debug logs on a Cisco IOS device the date and time is not displayed and instead you get something like the below, here is the solution.

If you are new to Cisco or just want to improve your skills I recommend this course from Udemy at the time of writing for just $20 for lifetime access! I’m also a really big fan of Pluralsight

6w4d: %ETHCNTR-3-LOOP_BACK_DETECTED: Loop-back detected on FastEthernet2/0/8.

Get into configure terminal mode and enter the below

service timestamps log datetime localtime
service timestamps debug datetime localtime

This will get the Cisco IOS device to record the local time with each entry into the log, so you get something like the below

Jul 29 09:32:51: %SYS-5-CONFIG_I: Configured from console by vty0

You will also want to make sure the date and time is correct on you device otherwise the date and time in the logs will be off.

show clock
09:40:12.581 BST Thu Jul 29 2010

And if you need to set the time

clock set hh:mm:ss


ntp server xxxxx

All future logs will not have the date and time on them.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.