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

Syntax   admin-syslog-match-add

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.

Defaults   None

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 create a syslog event match filter.

Examples  To create a filter to send the log messages of message-level critical to the syslog server, use the following command:

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