Skip to content

SIEM export Since v0.1 ​

SIEM export sends security events and audit records to syslog collectors as they are stored. Each destination continues where it stopped after a restart or an outage, so delivery is at least once.

Before you begin ​

  • Role: admin.
  • Know the collector's host:port, transport and format.
  • For TLS, have the CA bundle that verifies the collector. For mutual TLS, also a client certificate and key.

Add a destination ​

text
1. Open System > SIEM export > Destinations.
2. Add a destination and enter Name, Address, Transport and Format.
3. Choose the Streams, and optionally Applications and Actions.
4. Select Preview changes, add a comment and select Apply.
sh
waap siem get > siem.yaml
# edit siem.yaml, then preview and apply
waap siem set -f siem.yaml -dry-run
waap siem set -f siem.yaml -m "add corporate SIEM"
yaml
# siem.destinations in the configuration, or siem.yaml (waap siem set)
- name: corp-siem
  address: siem.example.com:6514
  transport: tls
  format: json
  streams: [security, audit]

Add TLS files ​

The files are stored with the configuration version, so a rollback and the standby use the same files. The key is never shown again.

text
1. Open System > SIEM export, TLS files of a destination.
2. Upload the CA bundle, or the client certificate and key.
3. Select Preview changes, then Apply.
sh
waap siem ca -dest corp-siem -f ca.pem -m "collector CA"
waap siem client-cert -dest corp-siem -cert c.pem -key k.pem -m "mutual TLS"

Use -remove to take the files out. Without a CA bundle the system's roots verify the collector.

Test a destination ​

text
1. Open System > SIEM export, the status table.
2. Select Send test on the destination.
sh
waap siem test -dest corp-siem
waap siem status

The test sends an audit-style message with action siem.test.

Settings reference ​

Destination ​

SettingWhat it doesDefaultAllowed valuesApplies in
Name (name)Identifies the destination.none (required)lowercase letters, digits and dashesall
Address (address)The collector.none (required)host:portall
Transport (transport)How messages are sent.tlstls, tcp, udpall
Format (format)Message body format.jsonjson, cef, leefall
Streams (streams)What is sent.bothsecurity, auditall
Applications (applications)Security events of these applications only.none (all)application namessecurity stream
Actions (actions)Security events with these actions only.none (all)action names, for example blocksecurity stream
Facility (facility)Syslog facility.local0local0 to local7, user, daemonall
Include captured request and trace (include_capture) Since v0.2Adds each event's captured request and trace.falsetrue, falseformat json
Server name (tls.server_name)Name that the collector's certificate must have.the host of Addresshost nametransport tls

How delivery works ​

  • Position: each destination keeps its position per stream and continues after a restart or an outage. A new destination starts with records stored from then on, with no replay of history.
  • Connection: TCP and TLS use octet counting (<length> <message>), UDP one message per datagram. On failure the exporter reconnects with a backoff from 1 s to 1 min and resends the batch it could not confirm.
  • Values: messages carry values as the event holds them, in full unless the application masks them (policy.logging.mask: pci).
  • Size: a message over 64 KiB is sent with its long values cut and marked …[truncated: N bytes]. It is dropped only when still too large.
  • High availability: only the active node exports. After a switchover a collector may receive a few records twice. De-duplicate by transaction_id for security events, and by node and seq for audit records.

Metrics: waap_siem_sent_total, waap_siem_dropped_total, waap_siem_lag and waap_siem_connected, each with a destination label.

Examples ​

A destination that receives only blocked requests of one application:

yaml
- name: shop-blocks
  address: siem.example.com:6514
  streams: [security]
  applications: [shop]
  actions: [block]

Limits ​

LimitValue
Destinations16
Message size64 KiB, long values cut and marked
Reconnect backoff1 s to 1 min

Troubleshooting ​

A destination shows lag and no connection ​

  • Cause: the collector is down, the address is wrong, or the TLS certificate does not verify.
  • Check: waap siem status shows the connection state and the last error.
  • Fix: correct the address, or add the collector's CA with waap siem ca.

The collector receives duplicate records after a failover ​

  • Cause: delivery is at least once.
  • Fix: de-duplicate by transaction_id or by node and seq.