logging buffered

Enables logging of specific messages or changes the number of entries that the local syslog buffer can store.
Syntax
logging buffered { level | num-entries }
no logging buffered { level | num-entries }
Command Default

The number of entries that the local syslog buffer can store is 4000.

Parameters
level
Specifies the message level with one of the following values: alerts, critical, debugging, emergencies, errors, informational, notifications, warnings.
num-entries
Configures the number of entries that the local syslog buffer can store. The value ranges from 1 through 4000.
Modes

Global configuration mode

Usage Guidelines

The software does not log informational or debugging messages.

To change the message level, you must disable logging of specific message levels individually.

When changing the number of entries that the local syslog buffer can store, pay attention to the following considerations:

  • You must save the configuration and reload the software to effect the change.
  • The modified number of syslog messages remains persistent across reloads if the logging persistence command is configured.
  • The number of persistent log messages across soft reboots is the same as the number of dynamic syslog messages.
  • If you decrease the size of the buffer, the software clears the buffer before effecting any changes.
  • If you increase the size of the syslog buffer, the software clears some of the older locally buffered syslog messages.

The no form of the command using the level option disables logging of the specified message level. The no form of the command using the num-entries option resets the syslog buffer size to 4000 (the default).

Examples

The following example enables the logging of debugging messages.

device(config)# logging buffered debugging

The following example sets the number of entries that the local syslog buffer can store to 1000.

device(config)# logging buffered 1000

The modified number of dynamic syslog messages getting logged is displayed in the show logging command output.

device# show logging
Syslog logging: enabled ( 0 messages dropped, 0 flushes, 0 overruns)
Buffer logging: level ACDMEINW, 9 messages logged
    level code: A=alert C=critical D=debugging M=emergency E=error
                I=informational N=notification W=warning

Static Log Buffer:
Dec 20 03:51:04:I:System: Stack unit 1   Power supply 1  is up 

Dynamic Log Buffer (1000 lines):
Dec 20 03:51:35:I:Security: console login by un-authenticated console user to PRIVILEGED EXEC mode
Dec 20 03:51:04:I:System: Stack unit 1   Power supply 1  is up
History
Release version Command history
08.0.80 This command was modified to increase the default value of dynamic syslog messages being logged from 50 to 4000.