> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/settings/third-party-services-settings/syslog-settings.md).

# Syslog Settings

Forward OctoXLabs user activities and discovery messages to a syslog server, and send a test message.

**Syslog Settings** sends a copy of what OctoXLabs records to a syslog server, so your SIEM or log collector keeps it outside the platform. The same entries remain visible in the User Activities and System Activities logs.

Two kinds of messages are forwarded:

* Activity entries, for example user and system activities, when **Send user activities** is on.
* Discovery messages: when a discovery starts, the platform passes the syslog host, port and protocol to the connector, so connector messages go to the same server.

### Before you begin

* Required permission to open the page: `configurations.view_syslogconfiguration`.
* Required permission to save and send a test message: `configurations.change_syslogconfiguration`.
* The permissions for this page can be held only by administrators. They cannot be added to a custom group.
* The host name or IP address of the syslog server, and the port and protocol it listens on.
* A network path from the OctoXLabs server (and from any remote connector) to that port.

### Configure syslog

{% stepper %}
{% step %}

#### Open the page

Go to **Settings** > **3rd Party Services Settings** > **Syslog Settings**.
{% endstep %}

{% step %}

#### Enter the server

Fill in **Hostname or IP**, **Port** and **Protocol** (**UDP** or **TCP**).
{% endstep %}

{% step %}

#### Choose what to send

Keep **Send user activities** selected to forward activity entries. Clear it to stop forwarding them.
{% endstep %}

{% step %}

#### Save

Click **Save**. The console shows **Syslog configuration has been saved**.
{% endstep %}

{% step %}

#### Send a test message

Click **Send Test Message**. See Verify the result.
{% endstep %}
{% endstepper %}

### Settings

| Setting                  | Type                     | Default | Description                                                                                           |
| ------------------------ | ------------------------ | ------- | ----------------------------------------------------------------------------------------------------- |
| **Hostname or IP**       | Text                     | Empty   | Address of the syslog server. While it is empty, nothing is forwarded.                                |
| **Port**                 | Number                   | `514`   | Port of the syslog server.                                                                            |
| **Protocol**             | Choice: **UDP**, **TCP** | **UDP** | Transport used to send messages.                                                                      |
| **Send user activities** | Checkbox                 | On      | Forwards activity entries, and the platform's own discovery start and cancel messages, to the server. |

Each message is sent as `octoxlabs 1 - <message>`.

{% hint style="info" %}
The backend also stores a `send_discovery_logs` flag that the page does not show. The console keeps whatever value is stored. The code in this version does not read it when sending messages.
{% endhint %}

### Verify the result

Save the form first. **Send Test Message** uses the saved values, not the values you have typed but not saved.

Click **Send Test Message**. The console shows **Syslog test message has been sent successfully. Please check your syslog server for the test message.** The message text on the server is `octoxlabs 1 - This is a test message.`

Look for it on the syslog server. The console cannot confirm delivery, especially over UDP, which has no acknowledgement.

### Troubleshooting

| Symptom or error message                               | Cause                                                                                                                                      | Fix                                                                                                                 |
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
| `Not configured.` when you click **Send Test Message** | **Hostname or IP** is empty in the saved configuration.                                                                                    | Enter the host, click **Save**, then test again.                                                                    |
| The console reports success but nothing arrives        | UDP gives no delivery confirmation. A firewall may block the port. **Send user activities** may be off, which also stops the test message. | Check the firewall and the listener on the server, try **TCP**, and make sure **Send user activities** is selected. |
| Activities arrive but connector messages do not        | The remote connector cannot reach the syslog server, or the configuration changed after the discovery started.                             | Check the route from the connector host. Start a new discovery after saving.                                        |
| Test shows old values                                  | The form was not saved before testing.                                                                                                     | Click **Save**, then **Send Test Message**.                                                                         |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>User Activities</strong></td><td>See what is recorded for users.</td><td></td></tr><tr><td><strong>System Activities</strong></td><td>See what is recorded for the system.</td><td></td></tr><tr><td><strong>SMTP</strong></td><td>Set up the mail server.</td><td></td></tr></tbody></table>
