Command Reference
Syslog Commands
8.14 logging filter rule
Use this command to configure the filter rule of the log message,
logging filter rule
{
exact-match module
module-name
mnemonic
mnemonic-name
level
level
|
single-match
[
level
level
|
mnemonic
mnemonic-name
|
module
module-name
] }
Use this command to delete the
“exact-match” filter rule.
no logging filter rule exact-match
[
module
module-name
mnemonic
mnemonic-name
level
level
]
Use this command to delete the
“single-match” filter rule.
no logging filter rule single-match
[
level
level
|
mnemonic
mnemonic-name
|
module
module-name
]
Parameter
Description
Parameter
Description
exact-match
Exact-match filter rule. Fill in all the following three parameters.
single-match
Single-match filter rule. Fill in one of the following three parameters.
module
module-name
Module name.
mnemonic
mnemonic-name
Mnemonic name.
level
level
Log level,
Defaults
No filter rule is configured by default,
Command
Mode
Global configuration mode
Usage Guide
If you want to filter a specific log message, use the
“exact-match” filter rule and fill in all three
parameters, namely, module name,
mnemonic name and log level.
If you want to filter a specific kind of log messages, use the
“single
-match
” filter rule and fill in one of
three parameters, namely,
module name,
mnemonic name and log level.
When configured with the same module name,
mnemonic name or log level,
the
“single
-match
” filter
rule has a higher priority than the
“exact-match” filter rule,
Configuration
Examples
The following example configures the
“exact-match” filter rule with parameters of module name
LOGIN, log level 5 and mnemonic name LOGOUT.
Ruijie(config)# logging filter rule exact-match module LOGIN mnemonic LOGOUT
level 5
The following example configures the
“single-match” filter rule with the parameter of module name
SYS.
Ruijie(config)# logging filter rule single-match module SYS
Related
Commands
Command
Description
N/A
N/A
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...