set logging server condition

Last Updated : Apr 08, 2019 |
Specifies a filter for messages sent to the specified Syslog server. Messages can be filtered by source system, severity, or both.
Prolog information

Syntax

set logging server condition {all | <application>} {none | severity} {ip_address | ipv6–addr[%zoneid] | hostname}

Parameters

Parameter
Description
Possible Values
Default Value
all
Keyword specifying to apply this filter to all message facility systems
application
Application name to apply the filter.
none
Keyword specifying not to log any messages
severity
Only log messages whose severity level is equal to or more severe than the specified level. 0 is the highest severity and 7 the lowest severity.
Use the text value or its numeric equivalent:
emergency (0)
alert (1)
critical (2)
error (3)
warning (4)
notification (5)
informational (6)
debugging (7)
ip-addr
The IPV4 address of the Syslog server
ipv6–addr
The IPV6 address of the Syslog server
%zone-id
VLAN number
1 — 4,090
hostname
The name of the Syslog server host

User Level

read-write

Context

general

Example

To filter fan messages for the Syslog server at IP address 168.23.1.15, so that only fan messages of warning-level severity or greater are sent:
Gxxx-001(super)# set logging server condition fan warning 168.23.1.15
To filter voice messages for the Syslog server at IPv6 address 2001:db8:2179::1, so that only voice messages of informational-level severity or higher are sent:
Gxxx-001(super)# set logging server condition VOICE Informational 2001:db8:2179::1