---
title: Syslog
slug: aidc/eFjd-syslog
createdAt: 2025-12-29T10:34:40.304Z
---

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                         | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ----------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/syslog                         | Y       | N        | Y         | N       | N          |
| /rest/v1/running/syslog/remote-server/&#x7B;ip} | Y       | Y        | Y         | N       | Y          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Get all syslog information.</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/syslog
```

### <font color="#1d50a2">Create a remote syslog server.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/syslog/remote-server/192.0.1.10
{
    "port": "8081"
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">Syslog remote servers</font>

**Tree Diagrams**

```plaintext
  +--rw syslog
     +--rw remote-server* [ip]
     |  +--rw ip
     |  +--rw port?
     +--rw source-interface?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range**                                                                 | **Description**                                                                                     |
| ---------------- | ------------ | ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- |
| syslog           | M            |                                                                                | Path-only node, has no configurable value.<br />Configuration for the syslog service.               |
| remote-server    | M            |                                                                                | (sub-property of syslog)<br />Path-only node, has no configurable value.                            |
| ip               | M            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                    | (sub-property of remote-server)<br />Remote syslog server ip                                        |
| port             | O            | 1..65535                                                                       | (sub-property of remote-server)<br />Remote syslog server port,default: 514<br />Default value: 514 |
| source-interface | O            | Ethernet name<br />Ethernet sub-interface name<br />Loopback name<br />"Mgmt0" | (sub-property of syslog)<br />Syslog server source-interface                                        |

