admin-syslog-match-modify

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

admin-syslog-match-modify

syslog-name
name-string

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 syslog file.

Specify any of the following options:

msg-category
even|audit|system|perror

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

msg-program program-string

The name of the program used to generate log messages.

msg-name name-string

The type of message to match or add.

msg-code code-number

The message code to match or add.

msg-level critical|error|
warn|note

The message level to match or add.

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

The type of event to match or add.

msg-vnet vnet-name

The name of a VNET to match or add.

msg-remote-switch node name

The name of a remote switch node to match or add.

msg-user user-name

User name to match or add.

msg-port port-number

The port to match or add.

msg-vlan vlan-id

The VLAN ID to match or add.

msg-vxlan vxlan-name

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.

msg-reverse|
no-msg-reverse

Specify if the message is reversed or not.

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

The facility type to match or add.

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

The severity of the event to match or add.

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 modify a search term for a syslog file and match on a certain keyword.

Examples  To modify the syslog to capture messages with the level critical, in the syslog file, logevents-aug13, use the following command:

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

See Also   

admin-syslog-create

admin-syslog-delete

admin-syslog-modify

admin-syslog-show

admin-syslog-match-add

admin-syslog-match-remove

admin-syslog-match-show