This command is used to modify a syslog event match filter for sending selective logs to the syslog server.

Syntax   admin-syslog-match-modify

syslog-name name-string

Specify the name of the syslog file.

Specify the following match arguments:

name name-string

Specify a name for the matching scheme.

Specify any of the following options:

msg-category event|audit|system|perror|container|os-logs|xact-truncate

Specify one among the options as the category of the message to match.

msg-program program-string

Specify the name of the program used to generate the log messages.

msg-name name-string

Specify the name of the message to match.

msg-code code-number

Specify the message code to match.

msg-level critical|error|warn|note|info

Specify one among the options as the severity level to match. 

By default, all messages are forwarded to the syslog server.

msg-event-type system|port|tcp|stp|igmp|lldp|lacp|vdp|ecp|evb|ptp|storage|tacacs|mld|mroute|vport|lacp-port-event

Specify the type of event to match.

msg-vnet vnet-name

Specify the vNET name to match.

msg-remote_switch node-name

Specify the remote switch to match.

msg-user user-name

Specify user name to match.

msg-client-addr ip-address

Specify the client IP address.

msg-port port-number

Specify the port number to match.

msg-vlan 0..4095

Specify the VLAN to match.

msg-bd bridge-domain-name

Specify the bridge domain to match.

msg-vxlan vxlan-ID

Specify the VXLAN to match.

Access   CLI


Version 1.2

Command introduced.

Version 2.3.3

The parameter vport added to message event type.

Version 6.0.0

The parameter info added to msg-level.

Usage   Use this command to modify a syslog match filter

Examples  To modify the syslog match filter to capture messages with the level critical, use the following command:

CLI (network-admin@switch) > admin-syslog-match-modify syslog-name log1 msg-level critical