07-01-2022 07:00 AM
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
07-01-2022 07:06 AM
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.
12-20-2024 10:02 PM
@Seb Rupik is correct.
I found the following information helpful:
https://www.cisco.com/c/en/us/td/docs/routers/access/wireless/software/guide/SysMsgLogging.html
- cheers
07-01-2022 07:27 AM - edited 07-01-2022 07:39 AM
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.
07-01-2022 09:11 AM
- The best method is to use a syslog server , which will further give more flexible methods for archiving logs
M.
07-01-2022 06:17 PM
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à.
12-11-2024 04:21 PM
@Leo Laohoo agreed!
We can use https://youtu.be/kIsv_WVizGw?si=l9sSuLimcE4l8h0q as a point of reference.
- Cheers
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide