5-116
Cisco IOS XR Getting Started Guide
OL-14361-01
Chapter5 Configuring Additional Router Features
Configuring Logging and Logging Correlation
Examples
In the following example, basic message logging is configured:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# logging 10.1.1.1
RP/0/RP0/CPU0:router(config)# logging trap debugging
RP/0/RP0/CPU0:router(config)# logging console emergencies
RP/0/RP0/CPU0:router(config)# logging buffered 1000000
RP/0/RP0/CPU0:router(config)# commit
RP/0/RP0/CPU0:router(config)# end
RP/0/RP0/CPU0:router# show logging
Syslog logging: enabled (162 messages dropped, 0 flushes, 0 overruns)
Console logging: level emergencies, 593 messages logged
Monitor logging: level debugging, 0 messages logged
Trap logging: level debugging, 2 messages logged
Logging to 10.1.1.1, 2 message lines logged
Buffer logging: level debugging, 722 messages logged
Log Buffer (1000000 bytes):
Step4 logging console [severity]
Example:
RP/0/RP0/CPU0:router(config)# logging console
emergencies
Logs messages on the console.
When a severity level is specified, only messages at
that severity level are logged on the console.
See Tabl e 5-2 for a summary of the logging severity
levels.
Step5 logging buffered [severity | buffer-size]
Example:
RP/0/RP0/CPU0:router(config)# logging buffered
1000000
Copies logging messages to an internal buffer.
Newer messages overwrite older messages after the
buffer is filled.
Specifying a severity level causes messages at that
level and numerically lower levels to be logged in an
internal buffer. See Table 5 -2 for a summary of the
logging severity levels.
The buffer size is from 4096 to 4,294,967,295bytes.
Messages above the set limit are logged to the
console.
Step6 commit
Example:
RP/0/RP0/CPU0:router(config)# commit
Commits the target configuration to the router running
configuration.
Step7 end
Example:
RP/0/RP0/CPU0:router(config)# end
Ends the configuration session and returns to EXEC
mode.
Step8 show logging
Example:
RP/0/RP0/CPU0:router# show logging
Displays the messages that are logged in the buffer.
Command or Action Purpose