cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
240
Views
0
Helpful
1
Replies

Logging debugs

yshraybman
Level 4
Level 4

Is it possible to log debugs to buffer only and not syslog for IOS router?  Everything else should go to both syslog and buffer.

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

Peter Paluch
Cisco Employee
Cisco Employee

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

Getting Started

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:

Review Cisco Networking products for a $25 gift card