Management and Configuration Guide K/KA/KB.15.15

This example denies logging of the matching regular expression “port <port-num> is now on-line
for ports A10, A22, and B5.
1. The filter named noUpPorts adds a sub-filter with a type of regular expression for ports A10,
A22, and B5. The sub-filter specifies the matching criteria for the regular expression and if
there is a match, the event log message is not logged.
2. The default sub-filter specifies that any message that did not meet the prior matching criteria
will be logged.
3. The last command enables the filter named noUpPorts.
Example
Figure 219 Specifying the Criteria for a Match using a Regular Expression for Specific Ports
1. The filter named noStpBlockPorts adds a sub-filter with a type of regular expression with a
sequence number of 10. This rule specifies that event messages from ports A1-A10, and B1-B4
with the “.*Blocked by STP” expression pattern in the message body are logged.
2. The second command adds a sub-filter with a type of regular expression and a sequence
number of 20. This rule specifies that event messages generated from any ports with the
.*Blocked by STP” expression pattern in the message body are not logged.
3. The default sub-filter specifies that any message that did not meet the prior matching criteria
will be logged.
4. The last command enables the filter named noStpBlockPorts.
Output Examples
The following example displays the show command output for displaying the configured logging
filters.
Figure 220 The Configured Logging Filters
The following example displays the output when specific filters are specified.
Debug/syslog operation 421