logging correlator apply rule
To apply and activate a correlation rule and enter correlation apply rule configuration mode, use the
logging
correlator apply rule
command in global configuration mode. To deactivate a correlation rule, use the
no
form of this command.
logging correlator apply rule correlation-rule
[
all-of-router
|
context name
|
location node-id
]
no logging correlator apply rule correlation-rule
[
all-of-router
|
context name
|
location node-id
]
Syntax Description
Name of the correlation rule to be applied.
correlation-rule
(Optional) Applies the correlation rule to the entire router.
all-of-router
(Optional) Applies the correlation rule to the specified context. Unlimited
number of contexts. The
name
string is limited to 32 characters.
context name
(Optional) Applies the correlation rule to the specified node. The
node-id
argument is entered in the
rack/slot/module
notation. Unlimited number of
locations.
location node-id
Command Default
No correlation rules are applied.
Command Modes
Global configuration
Command History
Modification
Release
This command was introduced.
Release 3.6.0
Usage Guidelines
The
logging correlator apply rule
command is used to either add or remove apply settings for a given rule.
These settings then determine which messages are correlated for the affected rules.
If the rule is applied to
all-of-router
, then correlation occurs for only those messages that match the configured
cause values for the rule to be correlated, regardless of the context or location setting of that message.
If a rule is applied to a specific set of contexts or locations, then correlation occurs for only those messages
that match both the configured cause values for the rule and at least one of those contexts or locations.
Use the
show logging correlator rule, on page 52
command to show the current apply settings for a given
rule.
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01
15
Alarm Management and Logging Correlation Commands
logging correlator apply rule