When a rule is applied (or if a rule set that contains this rule is applied), then the rule definition cannot be
modified through the configuration until the rule or rule set is once again unapplied.
Tip
It is possible to configure apply settings at the same time for both a rule and zero or more rule sets that
contain the rule. In this case, the apply settings for the rule are the union of all the apply configurations.
Tip
The
logging correlator apply rule
command allows you to enter submode (config-corr-apply-rule) to apply
and activate rules:
RP/0/0/CPU0:router(config)#
logging correlator apply rule stateful1
RP/0/0/CPU0:router(config-corr-apply-rule)#?
all-of-router
Apply the rule to all of the router
clear
Clear the uncommitted configuration
clear
Clear the configuration
commit
Commit the configuration changes to running
context
Apply rule to specified context
describe
Describe a command without taking real actions
do
Run an exec command
exit
Exit from this submode
location
Apply rule to specified location
no
Negate a command or set its defaults
pwd
Commands used to reach current submode
root
Exit to the global configuration mode
show
Show contents of configuration
RP/0/0/CPU0:router(config-corr-apply-rule)#
While in the submode, you can negate keyword options:
RP/0/0/CPU0:router(config-corr-apply-rule)#
no all-of-router
RP/0/0/CPU0:router(config-corr-apply-rule)#
no context
RP/0/0/CPU0:router(config-corr-apply-rule)#
no location
Task ID
Operations
Task ID
read, write
logging
Examples
This example shows how to apply a predefined correlator rule to a location:
RP/0/0/CPU0:router(config)#
logging correlator apply rule rule1
RP/0/0/CPU0:router(config-corr-apply-rule)#
location 0/2/CPU0
Related Commands
Description
Command
Defines the rules for correlating messages.
logging correlator rule, on page 22
Displays one or more predefined logging correlator
rules.
show logging correlator rule, on page 52
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
16
OL-24735-01
Alarm Management and Logging Correlation Commands
logging correlator apply rule