Syslog Configuration
Syslog Configuration
Section titled “Syslog Configuration”syslog source-interface
Section titled “syslog source-interface”[Command]
syslog source-interface {etherent|loopback|vlan|mgmt} interface_name
no syslog source-interface
[Purpose]
Configure the source interface for the device to send syslog packets
[Parameter]
| Parameter | Description |
|---|---|
| {etherent|loopback|vlan|mgmt} interface_name | Specify the source as a service interface or a specific Loopback port |
[View]
System configuration view
[Use Cases]
sonic(config)# syslog source-interface loopback 0Syslog source interface set to Loopback0Restarting rsyslog-config service...sonic(config)#syslog
Section titled “syslog”[Command]
syslog ip_address port UDP_port vrf vrf_name
no syslog ip_address
[Purpose]
Specify the syslog server
[Parameter]
| Parameter | Description |
|---|---|
| ip_address | IPv4 or IPv6 address |
[View]
System configuration view
[Usage Scenario]
Syslog can be used to log messages locally in files or sent over the network to a syslog server. The syslog server can centrally store syslog messages from multiple devices.
[Use Cases]
sonic(config)# syslog 10.1.1.10