User can configure source interface and then syslog message will use this IP address of this interface as the source IP address after it is routed. The source interface includes eth0, Loopback, vlan interface.

If you configure several IP addresses to loopback or vlan-interface, and then configure source-interface, syslog will choose the smallest IP address as source IP address. But if  syslog has used a ip address of source interface and then configure smaller ip address for source interface, this address won't work.

Command Syntax

set system syslog server-ip <IP> source-interface <text>
delete system syslog server-ip <IP> source-interface

Parameter
<IP> Configure syslog server ipv4 address.

<text> Configure an existing network interface, e.g. vlan20, eth0 or loopback

This command use the IP address of the source interface as 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 demonstrates how to configure source-interface eth0 for a certain syslog server ip address:

admin@XorPlus# set system syslog server-ip 10.10.50.176 source-interface eth0
admin@XorPlus# commit

• This example demonstrates how to configure source-interface loopback for a certain syslog server ip address:

admin@XorPlus# set vlan-interface loopback address 66.66.66.66 prefix-length 32
admin@XorPlus# set system syslog server-ip 10.10.50.176 source-interface loopback
admin@XorPlus# commit

• This example demonstrates how to configure source-interface vlan-interface for a certain syslog server ip address:

admin@XorPlus# set vlan-interface interface vlan3333 vif vlan3333 address 125.100.75.50 prefix-length 24 
admin@XorPlus# set system syslog server-ip 10.10.50.176 source-interface vlan3333
admin@XorPlus# commit