---
title: Syslog Configuration
slug: enterprise-v5p2/syslog-configuration
description: network management and monitoring
createdAt: 2025-11-14T03:58:40.683Z
---

### <font color="#1d50a2">show syslog config</font>

**\[Command]**
**show syslog config**

**\[Purpose]**
Show the syslog configuration

**\[View]**
System View

**\[Use Cases]**

```none
sonic# show syslog config
Src Interface    Protocol Port    Server IP
---------------  ---------------  ------------
eth0                              192.168.0.78
```

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

**\[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]**

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

### <font color="#1d50a2">syslog</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
```

### <font color="#1d50a2">syslog protocol-port</font>

**\[Command]**
**syslog protocol-port** *port*
**no syslog protocol-port**

**\[Purpose]**
Set syslog protocol port configuration, default 514

**\[Parameter]**

| **Parameter** | **Description**                                        |
| ------------- | ------------------------------------------------------ |
| *port*        | protocol port configuration, default 514,range 0-65535 |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# syslog protocol-port 513
```

