logging filter
Syntax
logging filter <NAME> [per-ip] [severity <SEVERITY>
| event-list <NUM-RANGE> [permit|deny] | system-module
<MODULE-NAME>]
no logging filter <NAME> [per-ip] [severity <SEVERITY>
| event-list <NUM-RANGE> [permit|deny]| system-module
<MODULE-NAME>]
Description
Creates a syslog filter in the logging context. The
per-ip
filter is enabled by default.
Using PER-IP filter, you can create the global filter to match on few event logs to be sent to the syslog servers. However, this filter will automatically get applied on all the syslog servers configured on switch. It is not possible to apply the filter on few servers. Hence, PER-IP filter is created to match on few event logs based on event-id, severity and system modules. For more information on PER-IP filters, see the IPv6 Guide for your switch.
The
no
form of this command removes the
per-ip
filter.
Command context
Config
Parameters
- <NAME>
-
Specifies the name that identifies the filter.
- <SEVERITY>
-
Specifies the severity of an event-major, warning, error, info or debug.
- <NUM-RANGE>
-
Specifies an event number list to match. User can create either permit list or deny list.
- <MODULE-NAME>
-
Specifies the system module name.
Examples
Creating Per IP severity: switch# logging filter <NAME> [per-ip] [severity <SEVERITY>] logging filter cppm_filter per-ip severity major Creating Per IP Event list: switch# logging filter <NAME> [per-ip] [event-list <EVENT-NUM-RANGE>] [permit|deny] logging filter cppm_filter per-ip event-list 2-4 permit Creating Per IP System Module: switch# logging filter <NAME> [per-ip] [system-module <module-name>] logging filter cppm_filter per-ip system-module igmp Creating a Default Per IP filter: switch# logging filter <NAME> [per-ip] [default] logging filter cppm_filter per-ip default Creating Per IP filter on server: switch# logging filter <IP> filter [per-ip] logging 192.123.4.5 filter cppm_filter