Command:

logging buffered


Mode:

Router(config)#


Syntax:

logging buffered [buffer-size | level]
no logging buffered
default logging buffered

 

Syntax Description:

buffer-size (Optional) Size of the buffer from 4096 to 4,294,967,295 bytes. The default size varies by platform.
level (Optional) Limits the logging of messages to the buffer to a specified level. You can enter the level name or level number. See table below for a list of the accepatable level name or level number keywords.

 

Command Description:

To limit messages logged to an internal buffer based on severity, use the logging buffered global configuration command. To cancel the use of the buffer, use the no form of this command. The default form of this command returns the buffer size to the default size.

For most platforms, the Cisco IOS software logs messages to the internal buffer by default.

This command copies logging messages to an internal buffer. The buffer is circular in nature, so newer messages overwrite older messages after the buffer is filled.

Specifying a level causes messages at that level and numerically lower levels to be logged in an internal buffer. See table below for a list of level arguments.

Do not make the buffer size too large because the router could run out of memory for other tasks. You can use the show memory EXEC command to view the free processor memory on the router; however, this is the maximum available and should not be approached. The default logging buffered command resets the buffer size to the default for the platform.

To display the messages that are logged in the buffer, use the show logging EXEC command. The first message displayed is the oldest message in the buffer.

The show logging EXEC command displays the addresses and levels associated with the current logging setup, and any other logging statistics.

Error Message Logging Priorities and Corresponding Level Names/Numbers

Level Name Level Number Description Syslog Definition
emergencies 0 System unusable LOG_EMERG
alerts 1 Immediate action needed LOG_ALERT
critical 2 Critical conditions LOG_CRIT
errors 3 Error conditions LOG_ERR
warnings 4 Warning conditions LOG_WARNING
notifications 5 Normal but significant condition LOG_NOTICE
informational 6 Informational messages only LOG_INFO
debugging 7 Debugging messages LOG_DEBUG


Example:

In the following example, the user enables logging to an internal buffer:

Router(config)# logging buffered


Misconceptions:

None


Related Commands:

None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)