...
The set system syslog server-ip command configures the remote syslog server on the switch, including IP address, port number and , transmissionprotocol and source interface. After user configures the syslog server IP address, the log files will be sent to the syslog server.
The delete system syslog server-ip command deletes the configuration of remote syslog server.
Command Syntax
set system syslog server-ip <ip_address> [ port <port_number> | protocol <tcp | udp> | source-interface <source-interface>]
Parameter
Parameter | Description |
server-ip <ip_address> | Specifies IP address of a remote syslog server. It could be an IPv4 address or IPv6 address. |
port <port_number> | Optional. Specifies the port of the remote syslog server. The value is an integer type. |
protocol <tcp | udp> | Optional. Specifies the transmissionprotocol for the remote syslog server. The value can could be tcp or udp. |
source-interface <source-interface> | Optional. Specifies the source interface for sending/receiving syslog messages, e.g. vlan20, eth0, routed interface, sub-interface or loopback. |
Notes:
- The IP address of the source interface will be used as the source IP in the IP header after syslog message is routed.
- If syslog uses TCP protocol, source-interface can't be configured at the same time.
Example
• This example configures how to set the IP address of the remote syslog server.
...