06-22-2016 02:33 AM - edited 03-05-2019 04:16 AM
I want to download the complete logs of routers and switches which they generate. As show logging command only shows few current logs. Is there any way i can copy old logs as well which are not being displayed over the screen.
Please suggest a safe way to download logs and commands for activating logs over cisco routers and switches.
Solved! Go to Solution.
06-23-2016 06:25 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
As John notes, Cisco buffer logs are often limited in space, and they overwrite. Best solution is often to also direct logging output to a syslogging server, as he also recommends. That said, later Cisco device, I recall, can allocate quite a bit of (RAM) space to the syslog buffer. Depending how far back in time you want your on-device log to retain, how chatty your logging is, and you "spare" RAM on the device, increasing your buffer log size might be all you need to do.
06-22-2016 05:39 AM
cisco devices have 'limited' logging buffer capacity and overwrites it once the limit is reached.
you'll need an external syslog server in order to capture historical logs.
06-23-2016 06:25 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
As John notes, Cisco buffer logs are often limited in space, and they overwrite. Best solution is often to also direct logging output to a syslogging server, as he also recommends. That said, later Cisco device, I recall, can allocate quite a bit of (RAM) space to the syslog buffer. Depending how far back in time you want your on-device log to retain, how chatty your logging is, and you "spare" RAM on the device, increasing your buffer log size might be all you need to do.
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