Chapter 5 Configuring Additional Router Features

Configuring Logging and Logging Correlation

DETAILED STEPS

 

Command or Action

Purpose

Step 1

 

 

configure

Enters global configuration mode.

 

Example:

 

 

RP/0/RP0/CPU0:router# configure

 

Step 2

 

 

logging {ip-address hostname}

Specifies a syslog server host to use for system logging.

 

Example:

 

 

RP/0/RP0/CPU0:router(config)# logging 10.1.1.1

 

Step 3

 

 

logging trap severity

Limits the logging of messages sent to syslog servers to

 

 

only those messages at the specified level.

 

Example:

See Table 5-2for a summary of the logging severity

 

RP/0/RP0/CPU0:router(config)# logging trap debugging

levels.

Step 4

 

 

logging console [severity]

Logs messages on the console.

 

 

When a severity level is specified, only messages at

 

Example:

that severity level are logged on the console.

 

RP/0/RP0/CPU0:router(config)# logging console

See Table 5-2for a summary of the logging severity

 

emergencies

 

levels.

 

 

 

 

 

Step 5

logging buffered [severity buffer-size]

Copies logging messages to an internal buffer.

 

 

Newer messages overwrite older messages after the

 

Example:

buffer is filled.

 

RP/0/RP0/CPU0:router(config)# logging buffered

Specifying a severity level causes messages at that

 

1000000

 

level and numerically lower levels to be logged in an

 

 

 

 

internal buffer. See Table 5-2for a summary of the

 

 

logging severity levels.

 

 

The buffer size is from 4096 to 4,294,967,295 bytes.

 

 

Messages above the set limit are logged to the

 

 

console.

Step 6

 

 

commit

Commits the target configuration to the router running

 

 

configuration.

 

Example:

 

 

RP/0/RP0/CPU0:router(config)# commit

 

Step 7

 

 

end

Ends the configuration session and returns to EXEC

 

 

mode.

 

Example:

 

 

RP/0/RP0/CPU0:router(config)# end

 

Step 8

 

 

show logging

Displays the messages that are logged in the buffer.

 

Example:

 

 

RP/0/RP0/CPU0:router# show logging

 

 

 

 

Examples

 

 

Cisco IOS XR Getting Started Guide

 

 

 

 

 

 

OL-10957-02

 

 

5-11

 

 

 

 

 

Page 143
Image 143
Cisco Systems Cisco IOS XR Specifies a syslog server host to use for system logging, RP/0/RP0/CPU0routerconfig# logging