cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6345
Views
8
Helpful
6
Replies

How to view past 5 days logs on cisco router using show logging?

ahad311
Level 1
Level 1

Hello all, 

I'm trying to view logs for past 5 days on cisco router. When I use "show logging" it seems to only show logs for one day. How can I see the logs for pas few days? 

Thank You 

6 Replies 6

Seb Rupik
VIP Alumni
VIP Alumni

Hi there, 

you need to increase the size of the internal log buffer. By default it is set to 4096 bytes. You can increase it with the command:

!
logging buffered <new_value_in_bytes>
!

It is worth considering the log level you also have configured as it will affect how quickly the buffer will fill up. Generally informational is acceptable:

!
logging buffered info
!

You may also consider sending all of you logs to a remote syslog collector.

 

cheers,

Seb.

 

 

balaji.bandi
Hall of Fame
Hall of Fame

EDIT -@Seb Rupik - is right  (may be i did not refresh thread before i reply - hoilding old information - apologies)

 

what is the device model here, based on the buffer size the logs will be stored, if you like to have more archive logs, you need to ship them to syslog server.

 

Note : if you enable any debug all the buffer log will be filled and no old logs can be viewed.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

marce1000
Hall of Fame
Hall of Fame

 

 - The best method is to use a syslog server , which will further give more flexible methods for archiving logs

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Leo Laohoo
Hall of Fame
Hall of Fame

Syslog server is the best method. 

Standing up a syslog server is not expensive.  Just get an un-used PC and install (FREE!) TFTPd32.  Point the router to send logs to the new Syslog server and voilà.

@Leo Laohoo agreed!

We can use https://youtu.be/kIsv_WVizGw?si=l9sSuLimcE4l8h0q as a point of reference.

 - Cheers