configure log target syslog

configure log target syslog [all | ipaddress {udp-port udp_port} | ipPort] {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.
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 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.

Options for configuring the remote syslog server include:
  • all—Specifies all of the remote syslog server hosts
  • ipaddress—The IP address of the remote syslog server host
  • ipPort—The UDP port
  • vr_name—The virtual router that can reach the syslog host
  • local0-local7—The syslog facility level for local use
  • from—The local source IP address

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.

Platform Availability

This command is available on all platforms.