logging buffered
logging buffered
{
level
|
threshold
value
|
num-entries
}no logging
buffered
{
level
|
threshold
value
|
num-entries
}The number of entries that the local syslog buffer can store is 4000.
- level
- Specifies the message level with one of the following values: alerts, critical, debugging, emergencies, errors, informational, notifications, warnings.
- threshold value
- Configures a threshold value for logging buffer based on which a syslog warning message is generated when the log entries exceed the specified threshold value. The threshold value is in percentage.
Global configuration mode
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 persistencecommand 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).
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
The following example sets a threshold value for logging buffer.
device(config)#logging buffered threshold 50
When the log entries reach the specified threshold value of logging buffer, a Syslog warning message similar to the following is generated.
SYSLOG: <12> Apr 27 07:42:51 device Warning! Buffer reached the threshold limit of 50%
| 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. |
| 09.0.00a | This command was modified to add the threshold option. |