admin-syslog-match-add

This command is used to search a syslog file for specific events logged to it.

Syntax   admin-syslog-match-add

syslog-name
name-string

Specify the name of the syslog file to use for matching an event or adding an event.

Specify the following match arguments:

name name-string

Specify the name of the log file.

Specify any of the following options:

msg-category
even|audit|system|perror

Specify the category of the message to match or add in the systlog file.

msg-program program-string

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

msg-name name-string

Specify the type of message to match or add.

msg-code code-number

Specify the message code to match or add.

msg-level critical|error|
warn|note

Specify the message level to match or add.

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

Specify the type of event to match or add.

msg-vnet vnet-name

Specify the name of a VNET to match or add.

msg-remote-switch node name

Specify the name of a remote switch node to match or add.

msg-user user-name

Specify user name to match or add.

msg-client-addr ip-address

Specify the client IP address.

msg-port port-number

Specify the port to match or add.

msg-vlan vlan-id

Specify the VLAN ID to match or add.

msg-vxlan vxlan-name

Specify the VXLAN name to match or add.

msg-args args-string

Specify a message argument to match or add.

msg-starting-point starting-point-number

Specify a starting point number for a message.

msg-length length-number

Specify the length of a message.

set-facility kern|user|mail|daemon|
auth|syslog|lpr|news|
uucp|clock|security|ftp|
ntp|audit|alert|cron|
local0|local1|local2|
local3|local4|local5|
local6|local7

Specify the facility type to match or add.

set-severity emerg|alert|crit|err|
warning|notice|info|debug

Specify the severity of the event to match or add.

Defaults   None

Access   CLI

History   

Version 1.2

Command introduced.

Version 2.3

The parameters, mld and mroute, added.

Version 2.3.3

The parameter, vport, added to message event type.

Usage   Use this command to search a syslog file and match on a certain keyword.

Examples  To add the message level critical, in the syslog file, logevents-aug13, use the following command:

CLI network-admin@switch > admin-syslog-match-add syslog-name logevents-aug13 msg-level critical

See Also   

admin-syslog-create

admin-syslog-delete

admin-syslog-modify

admin-syslog-show

admin-syslog-match-modify

admin-syslog-match-remove

admin-syslog-match-show