configure log target syslog

configure log target syslog [all | ipaddress {udp-port {udp_port}} | ipPort | ipaddress tls-port {tls_port}] {vr vr_name} {local0...local7} from source-ip-address

Description

This command specifies the source-ip-address to use when sending log messages to the Syslog server. The Syslog server's IP address along with the ipPort and local facility (a tuple) identify which Syslog server target is to be configured.

Syntax Description

syslog Specifies a Syslog target.
all Specifies all of the remote Syslog servers.
ipaddress Specifies the Syslog server‘s IP address.
udp-port Remote Syslog server UDP port. Default 514.
udp_port UDP port number.
ipPort Specifies the UDP port number for the Syslog target.
tls_port Specifies remote Syslog server Transport Layer Security (TLS) for connection type.
tls_port TLS port number.
vr_name

Specifies the virtual router that can reach the server IP address.

Note: User-created VRs are supported only on the platforms listed for this feature in the Switch Engine 32.6.3 Feature License Requirements document.
local0 ... local7 Specifies the local Syslog facility.
source-ip-address Specifies the local source IP address to use.
Note: The address family (i.e IPv4 or IPv6) of the specified source IP address must be the same as the address family of the Syslog server's.

Default

If a virtual router is not specified, the following virtual routers are used:
  • ExtremeXOS 10.1—VR-0
  • ExtremeXOS 11.0 and later—VR-Mgmt

Usage Guidelines

Use this command to identify and configure the Syslog server‘s IP address. By configuring a source IP address, the Syslog server can identify from which switch it received the log message.

If you do not configure a source IP address for the Syslog target, the switch uses the IP address in the configured VR that has the closed route to the destination.

Example

The following command configures the IP address for the specified Syslog target:

configure log target syslog 10.12.1.15 from 10.234.56.78
configure log target syslog 2001:12:1::1 from 2001:44::1

History

This command was first available in ExtremeXOS 10.1.

The udp-port parameter and support for the EMS to send log messages to Syslog servers having IPv6 address was added in ExtremeXOS 21.1.

Transport Layer Security (TLS) option added in ExtremeXOS 22.1.

Platform Availability

This command is available on all ExtremeSwitching Universal switches.