Appearance
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 statusThe test sends an audit-style message with action siem.test.
Settings reference
Destination
| Setting | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
Name (name) | Identifies the destination. | none (required) | lowercase letters, digits and dashes | all |
Address (address) | The collector. | none (required) | host:port | all |
Transport (transport) | How messages are sent. | tls | tls, tcp, udp | all |
Format (format) | Message body format. | json | json, cef, leef | all |
Streams (streams) | What is sent. | both | security, audit | all |
Applications (applications) | Security events of these applications only. | none (all) | application names | security stream |
Actions (actions) | Security events with these actions only. | none (all) | action names, for example block | security stream |
Facility (facility) | Syslog facility. | local0 | local0 to local7, user, daemon | all |
Include captured request and trace (include_capture) Since v0.2 | Adds each event's captured request and trace. | false | true, false | format json |
Server name (tls.server_name) | Name that the collector's certificate must have. | the host of Address | host name | transport 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_idfor security events, and by node andseqfor 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
| Limit | Value |
|---|---|
| Destinations | 16 |
| Message size | 64 KiB, long values cut and marked |
| Reconnect backoff | 1 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 statusshows 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_idor by node andseq.
Related
- Audit log
- Event and log fields: every field, and how each SIEM format names it.
- High-availability pair