02-04-2016 11:01 AM - edited 03-08-2019 04:28 AM
Is it possible to log debugs to buffer only and not syslog for IOS router? Everything else should go to both syslog and buffer.
Solved! Go to Solution.
02-04-2016 11:22 AM
Hello,
It is certainly possible. The configuration would be:
logging buffered 1000000 debugging
logging trap informational
logging console informational
The first command tells the device to set up 1 MB of logging space in RAM for buffered logging, and to store all messages starting with the "debugging" severity and higher - this means all logging messages whatsoever.
The second commands configures the device to use Syslog for messages having the severity of "informational". This is the second lowest severity, right after "debugging", meaning that debugs won't go to Syslog but all other logging messages will.
The third line configures what logging messages will be printed out on console. The setting is the same as with the Syslog.
I hope this helps.
Best regards,
Peter
02-04-2016 11:22 AM
Hello,
It is certainly possible. The configuration would be:
logging buffered 1000000 debugging
logging trap informational
logging console informational
The first command tells the device to set up 1 MB of logging space in RAM for buffered logging, and to store all messages starting with the "debugging" severity and higher - this means all logging messages whatsoever.
The second commands configures the device to use Syslog for messages having the severity of "informational". This is the second lowest severity, right after "debugging", meaning that debugs won't go to Syslog but all other logging messages will.
The third line configures what logging messages will be printed out on console. The setting is the same as with the Syslog.
I hope this helps.
Best regards,
Peter
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: