---
title: Syslog Configuration
slug: routing/syslog-configuration
createdAt: 2025-12-04T03:54:13.490Z
---

## <font color="#1d50a2">Syslog Configuration</font>

### <font color="#1d50a2">syslog source-interface</font>

**\[Command]**
**syslog source-interface \{etherent|loopback} *interface-name***
**no syslog source-interface**

**\[Purpose]**
Configure the source interface for the device to send syslog packets

**\[Parameter]**

| **Parameter**                             | **Description**                                                       |
| ----------------------------------------- | --------------------------------------------------------------------- |
| *\{etherent\|loopback} \<interface-name>* | Specify the source as a service interface or a specific Loopback port |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# syslog source-interface loopback 0
Syslog source interface set to Loopback0
Restarting rsyslog-config service...
sonic(config)#
```

### <font color="#1d50a2">syslog *ip-address*</font>

**\[Command]**
**syslog *ip-address***
**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]**

```plaintext
sonic(config)# syslog 10.1.1.10
```

