> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/integrations/syslog-and-siem.md). Agents can also search and read this documentation through its [MCP server](https://wiki.datadike.com/~gitbook/mcp).

# Syslog and SIEM

Forward the audit trail continuously to an external collector — syslog over UDP, TCP or TLS, a text export, or Elasticsearch — so the records survive independently of the appliance.

Log shipping sends the records the solution produces to a collector you already operate, as they happen. The point is independence: a trail that also lives in your SIEM survives the loss, compromise or reinstallation of the appliance, and it can be correlated with everything else your SOC watches.

{% hint style="info" %}
**Log shipping is not reporting.** Shipping is continuous, machine-to-machine, and goes to a collector. [Reports](https://wiki.datadike.com/pam/administration/audit/reports.md) are periodic or on-demand extracts, formatted for people and delivered by e-mail. Both read the same underlying records — see [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md) — and most environments want both.
{% endhint %}

## What this is and when to use it

Two mechanisms exist, they are configured in different places, and they carry different things. Confusing them is the usual reason a SIEM project stalls.

| Mechanism                   | What it carries                                                             | Where it is configured                          |
| --------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------- |
| **Syslog forwarding**       | The event records — logins, sessions, configuration changes, file transfers | In the appliance configuration file             |
| **Command storage backend** | The commands typed in terminal sessions, indexed for search                 | **System settings › Storage › Command storage** |

Use syslog forwarding when the requirement is "our SIEM must hold the privileged-access trail". Use an Elasticsearch command-storage backend when the requirement is "searching the command history in the console is too slow" — by default commands live in the solution's own database, which is fine until the volume of terminal sessions grows.

Available destinations for the trail:

| Destination         | Notes                                                                           |
| ------------------- | ------------------------------------------------------------------------------- |
| **Syslog over UDP** | Default port 514. Fire and forget: no delivery guarantee                        |
| **Syslog over TCP** | Default port 514. Connection-oriented                                           |
| **Syslog over TLS** | Default port 6514. Use this whenever the collector is not on a trusted segment  |
| **Text export**     | A plain-text file, for collectors that read files or for an air-gapped hand-off |
| **Elasticsearch**   | Indexes command records for search, as a command-storage backend                |

## Before you start

* The collector's address and port, and a decision on the protocol. Prefer **TLS on 6514** unless the collector sits on a segment you already trust.
* The collector must be reachable **from every node**. On a cluster, each node forwards its own records; a firewall rule that only covers one node produces a trail with holes in it.
* The syslog facility your collector expects, so the records land in the right pipeline rather than in the default one.
* A maintenance window. Enabling forwarding requires restarting the solution's services.

{% hint style="warning" %}
Syslog forwarding is **not configured from the console**. It is set in the appliance's configuration file, and the change takes effect only after the services restart. Open a support ticket so the change is made and recorded — do not edit a production appliance by hand without one.
{% endhint %}

## Steps

1. **Choose the destination and protocol**, and open the path from every node to the collector on that port.
2. **Set the parameters** in the appliance configuration file, `/opt/datadike/config/config.txt`:

   ```
   SYSLOG_ENABLE=true
   SYSLOG_ADDR=10.1.12.116:514
   SYSLOG_FACILITY=local2
   ```

   `SYSLOG_ADDR` takes the collector's address and port together. `SYSLOG_FACILITY` must match what the collector's configuration expects.
3. **Restart the solution's services.** Nothing is forwarded until they come back.
4. **Repeat on every node** of a cluster. Each node ships its own records.
5. **Add a command-storage backend**, if command search is the goal, under **System settings › Storage › Command storage**. Leaving the list empty keeps commands in the local database.
6. **Build the collector side**: parsers, indices and dashboards. The records follow a common standard, so the usual collectors consume them without a custom parser.

## What you should see

Records arrive as syslog lines carrying a record type and a JSON payload. The record type tells you which log the event came from:

| Event         | Record type | Payload highlights                                                                                                |
| ------------- | ----------- | ----------------------------------------------------------------------------------------------------------------- |
| Console login | `login_log` | The authentication backend, the source `ip`, the `username`, and a `status` object with the outcome               |
| File upload   | `ftp_log`   | The `account` used on the asset, the `filename`, a `value` of `upload`, the `remote_addr`, and the console `user` |
| File download | `ftp_log`   | The same fields, with a `value` of `download`                                                                     |

A single line looks like this, abbreviated:

```
Apr 19 15:25:11 10.1.14.125 datadike: login_log - { "backend": "Password",
  "ip": "10.1.10.35", "status": {"label": "successful", "value": true},
  "username": "admin" }
```

The `datadike:` tag is what you filter on at the collector to isolate the solution's records.

## How to verify it worked

Confirm arrival at the collector, not just that the configuration was saved.

1. **Force a known event.** Sign in to the console, or sign in with a deliberately wrong password. Both produce a `login_log` record within seconds.
2. **Search the collector for the `datadike:` tag** over the last few minutes and find that exact event. Match the `username`, the source `ip` and the `status` against what you just did — a record that arrives with the wrong fields is a parser problem, not a delivery problem.
3. **Exercise a second record type.** Upload a small file during a session and confirm an `ftp_log` record arrives with `"value": "upload"`. One record type working does not prove the rest are.
4. **Check every node.** On a cluster, sign in through each node and confirm each one's records reach the collector. This is the failure that goes unnoticed for months.
5. **If you added a command-storage backend**, run a terminal session, type a command, then search for that command in **Audit › Sessions › Keylogger**. The command must be found — if the backend is misconfigured, indexing fails silently and the console search comes back empty even though the session was recorded.

{% hint style="warning" %}
Test with a **failed** login as well as a successful one. A collector rule that only matches successes hides exactly the events you built the pipeline for.
{% endhint %}

## Common errors

| Symptom                                           | Cause                                                                             | Fix                                                                                                               |
| ------------------------------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Nothing arrives at the collector                  | The services were not restarted after the file was changed                        | Restart the solution's services; the configuration is read at start-up                                            |
| Nothing arrives, and the services were restarted  | Wrong protocol or port, or the collector is unreachable from the nodes            | Check against 514/UDP, 514/TCP and 6514/TLS, and test reachability from every node                                |
| Records arrive from some sessions but not others  | Only one node of a cluster is forwarding                                          | Apply the configuration on every node                                                                             |
| Records arrive but land in the wrong pipeline     | `SYSLOG_FACILITY` does not match the collector's configuration                    | Set the facility the collector expects, then restart                                                              |
| Records arrive over UDP intermittently under load | UDP has no delivery guarantee                                                     | Move to TCP, or to TLS on 6514                                                                                    |
| The TLS destination refuses the connection        | The collector's certificate is not trusted, or the port is wrong                  | Fix the trust chain and confirm the collector listens on 6514                                                     |
| Command search in the console is slow or empty    | Commands are in the local database, or the Elasticsearch backend is misconfigured | Add or repair the command-storage backend and verify by searching for a command you just typed                    |
| Events stop appearing for older dates             | Retention has expired, independently of forwarding                                | Retention is set in **System settings › Retention**; the collector's own retention is separate and usually longer |

## Field reference

### Configuration keys

| Key               | Meaning                                                                             |
| ----------------- | ----------------------------------------------------------------------------------- |
| `SYSLOG_ENABLE`   | `true` turns forwarding on. Read at service start-up                                |
| `SYSLOG_ADDR`     | The collector, as `address:port` — for example `10.1.12.116:514`                    |
| `SYSLOG_FACILITY` | The syslog facility, for example `local2`. Must match the collector's configuration |

### Default ports

| Protocol   | Port |
| ---------- | ---- |
| Syslog UDP | 514  |
| Syslog TCP | 514  |
| Syslog TLS | 6514 |

### Collectors known to consume the format without a custom parser

| Category                  | Products                                                                                                                   |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| SIEM                      | Splunk, IBM QRadar, Microsoft Sentinel, Elastic Security, Google Security Operations, Securonix, LogRhythm, Graylog, Wazuh |
| Log platforms and search  | Elastic Stack (ELK), OpenSearch, Loki with Grafana                                                                         |
| Collectors and forwarders | rsyslog, syslog-ng, Fluentd, Fluent Bit                                                                                    |
| Monitoring suites         | SolarWinds, ManageEngine, Paessler PRTG, Nagios                                                                            |

The record format follows a common standard; anything that reads standard syslog or ingests JSON payloads will handle it, whether or not it appears above.

## Related pages

* [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md) — the records being forwarded, and where each one lives in the console
* [Reports](https://wiki.datadike.com/pam/administration/audit/reports.md) — the other delivery path: periodic extracts for people, not continuous shipping
* [Session recordings](https://wiki.datadike.com/pam/administration/audit/recordings.md) — stored separately from the event records
* [Application-to-application access](https://wiki.datadike.com/pam/administration/integrations/application-to-application.md) — the other integration that produces audit records worth watching in a SIEM
