clear logging
To clear system logging (syslog) messages from the logging buffer, use the clear logging command in EXEC
mode.
clear logging
Syntax Description
This command has no keywords or arguments.
Command Default
None
Command Modes
EXEC
Command History
ModificationRelease
This command was supported.Release 3.2
Removed the internal keyword.Release 3.7.0
Usage Guidelines
Use the clear logging command to empty the contents of the logging buffer. When the logging buffer becomes
full, new logged messages overwrite old messages.
Use the logging buffered, on page 312 command to specify the logging buffer as a destination for syslog
messages, set the size of the logging buffer, and limit syslog messages sent to the logging buffer based on
severity.
Use the show logging, on page 344 command to display syslog messages stored in the logging buffer.
Task ID
OperationsTask ID
executelogging
Examples
This example shows how to clear the logging buffer:
RP/0/0/CPU0:router# clear logging
Clear logging buffer [confirm] [y/n] :y
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01 303
Logging Services Commands
clear logging