Timestamps in show log history

Discussion in 'Cisco' started by Simon, Oct 20, 2005.

  1. Simon

    Simon Guest

    Hi All,

    Hopefully an easy question.

    On a Cisco 26xx router I would like to have the full date/timestamp in
    the output of show log history. In a show log we have this working, but
    the show log history is only showing uptime as a timestamp. Is it
    possible to change this ?


    Simon, Oct 20, 2005
    1. Advertisements

  2. With...

    "service timestamps log datetime localtime"

    .... in configuration timestamps look like this:

    "Oct 20 11:13:39:"
    Seppo Mannisto, Oct 20, 2005
    1. Advertisements

  3. Simon

    Matteo Guest

    with service timestamp command you can change the date display in
    logging and debugging outputs. You can also display milliseconds and

    See service timestamp ?

    Matteo, Oct 20, 2005
  4. Simon

    Simon Guest

    Yes I have set :

    service timestamps debug datetime msec localtime
    service timestamps log datetime msec localtime

    If I do show log the output is :

    *Oct 20 16:54:26.462: %SYS-5-CONFIG_I: Configured from console by vty1

    But for the same log entry using show log history I see :

    entry number 20 : SYS-5-CONFIG_I
    Configured from console by vty1 (
    timestamp: 1725780
    Simon, Oct 20, 2005
  5. Simon

    Matteo Guest

    yes...that's right!

    Matteo, Oct 20, 2005
  6. Simon

    Simon Guest


    Thanks, but ...

    Does that mean I can't get a real timestamp rather than an uptime
    timestamp in the show log history output ?

    Just curious, as it would be nice if we could get a real timestamp in
    the history output.

    Simon, Oct 20, 2005
  7. Simon

    Matteo Guest

    yes, I think so
    I think that is an IOS bug. Infact the same thing happens on my routers
    (837, 7200 and 12000 series) in the Fastweb business network (an italian

    Matteo, Oct 20, 2005
  8. Simon

    Simon Guest


    Thanks for the fast response. Time to log yet another TAC call ;-)

    Simon, Oct 20, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.