cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1683
Views
0
Helpful
5
Replies

why logging timestamp command not work

xuan.z
Level 1
Level 1

"logging timestamp" has been used,but i can't see any datetime in the log content and was shown like below.

302016: Teardown UDP connection -23651592 for outside:21.20.103.47/53 to inside

Thanks in advance.

Regard,

yuntao

5 Replies 5

tbissett
Level 1
Level 1

Where are you viewing the logs? If you answer is the console, then no, you won't see the timestamp. It applies to syslog. Not sure if it also used in the PDM since I don't use it. Anyone else know?

I am viewing it in vty lines.

Regards,

yuntao

It might help if you could post the part of the config dealing with logging and service timestamps.

What is the source of time for your device?

Can you post the results of show clock?

HTH

Rick

HTH

Rick

logging on

logging timestamp

logging console emergencies

logging monitor errors

logging buffered errors

The source of time is a NTP server(C6509)

ntp authentication-key 1 md5 ******

ntp authenticate

ntp trusted-key 1

ntp server 192.168.1.1 key 1 source outside

show clock

09:20:57.338 Paking Mon Dec 6 2004

try adding this command 'service timestamps'

I use the following:

service timestamps debug datetime msec localtime show-timezone

service timestamps log datetime msec localtime show-timezone