Can I get time of day from logging?

I have a 3750 switch.

Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)

The log only shows uptime but not hours.

Even if I could change the logging configuration for uptime to include hours, minutes, secs, etc. would it change the information for log events that have already occured?

I am trying to get more information as to when Gi1/0/3 went down and how much time in between each event.

Can I change the prompt and get more information?

>sh logging | inc GigabitEthernet1/0/3
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
Dragon0x40Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

amprantiCommented:
conf tservice timestamps debug datetime msec

You can customize the above commands according your needs..
0
amprantiCommented:
Also:
service timestamps log datetime msec
0
Dragon0x40Author Commented:
thanks ampranti,

Will this change the information in the log about events that have already been logged?
0
amprantiCommented:
No. It will be applied to new entries from now on.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.