Audit log, SIEM and TAXII
The hash-chained audit log with signed checkpoints, forwarding to syslog, HTTP and TAXII sinks in SIEM formats, and the read-only TAXII 2.1 server.
On this page
Status. Tested: the audit writer, chain, checkpoints, verification and retention; every sink encoder with golden files; delivery, backoff, batch halving and dead letters against fake syslog, HTTP, Splunk HEC, Elasticsearch and TAXII servers; the TAXII 2.1 server and publisher; all in the product's package tests on PostgreSQL. Not yet run: delivery to a real Splunk, Elastic, Sentinel, QRadar or ArcSight, and a real TAXII client.
The audit log
Every change to settings, access and integrations, every sign-in, agent enrolment and refusal, change review, raw configuration view and export, and every Ask AI question is an audit event (Audit, permission audit.view). The full list of actions is on the audit events page.
- An event is written in the same transaction as the change it records: both commit or neither does.
- Configuration tables (settings, policies, change rules, roles, grants, tokens, join tokens, entitlements, asset details, sinks and the rest) are audited by a database trigger, so no code path can skip it. Secret values appear only as
(set)or(changed). - Events before authentication (failed sign-ins, refused agents, install script downloads) are aggregated per source address per 10 minutes, so a flood writes a few rows, not millions.
- The log is append-only (a trigger refuses updates and deletes) and hash-chained in commit order. Every 5 minutes an
audit.checkpointevent is signed with the server identity key and sent to every sink, whatever its filters.
structam audit verify # exits 1 on any gap, edit, reordering or truncation
structam audit verify -checkpoint cp.json # also against a checkpoint your SIEM received
structam audit verify -host 42 # host 42's change-event chain (and hosts merged into it)The chain makes tampering by someone with database access detectable, as long as they cannot also forge a checkpoint signed by the server key that a sink already holds. Someone with database access can still delete rows; verification reports it. Export with GET /api/v1/audit/export?format=ndjson or format=csv (itself audited).
Retention: STRUCTAM_AUDIT_RETENTION_DAYS (0, the default, keeps everything) drops whole monthly partitions, never one that an enabled sink has not yet received or the TAXII publisher has not yet published. A paused or failing publisher therefore holds retention back; structam doctor warns when it is more than an hour behind.
SIEM sinks
Configure sinks on Integrations → SIEM and TAXII (integrations.manage). Each sink forwards one or both streams, audit (the audit log) and changes (change events), optionally filtered by action, kind, category and minimum severity. A new sink starts from now, or the last 24 h, 7 days, or everything, so a new SIEM is not flooded.
| Kind | Transport | Formats |
|---|---|---|
syslog | UDP; TCP (LF or octet-counting framing); TLS (RFC 5425, optional client certificate) | rfc5424-json (RFC 5424 header, JSON message), cef (CEF:0, vendor KazLabs, product Structam), leef (LEEF 2.0); header RFC 5424 or RFC 3164 |
http | HTTPS; auth none, bearer, basic or a header; optional mutual TLS; no redirects | json (array), ndjson, splunk_hec, elastic_bulk (ECS), ocsf |
taxii | TAXII 2.1 push of STIX 2.1 envelopes to a remote collection | STIX 2.1 |
RFC 5424 structured data uses the sink's sd_id, or structam@<STRUCTAM_SYSLOG_PEN> with your IANA Private Enterprise Number (the documentation number 32473 is refused).
Delivery
- One node at a time reads each stream in commit order, so a row that commits late with a lower id is never skipped.
- Each sink keeps a cursor per stream that advances only after the sink accepted the batch. Delivery is at least once; every record carries a stable event id (a UUIDv5 of stream and row id) for de-duplication.
- Failures back off per sink from 1 s to 5 min. HTTP 413 halves the batch. A refusal that retrying cannot fix (authentication, other 4xx) parks the sink, which retries every 5 minutes.
- Content refusals (an Elasticsearch mapping error, a Splunk event refused for its content) are recorded and skipped (
sink.dead_letter); three in a row park the sink. - Skip to now moves a sink's cursors to the present (audited).
Note. A TCP or TLS syslog receiver gives no acknowledgement, so "delivered" means the local network stack took the bytes. Use HTTP or TAXII where every batch must be confirmed.
Send test event refuses destinations on loopback, link-local and private addresses unless STRUCTAM_SIEM_ALLOW_PRIVATE=on, and cloud metadata addresses always, so the button cannot probe the server's own network. Delivery itself is not limited.
Sink secrets are sealed, never returned, and only sent to the destination and with the TLS settings they were entered for: changing the host, the TLS verification or the trusted CA needs the secret again. Configuration file content never leaves Structam through a sink: configuration change events carry the path and revision only.
TAXII 2.1 server (read-only)
| Path | |
|---|---|
GET /taxii2/ | discovery |
GET /taxii2/structam/ | the API root |
.../collections/, .../collections/{id}/objects/, /manifest/, /objects/{object_id}/, /versions/ | collections audit, changes, inventory |
- Clients authenticate with an API token of scope
taxii, asAuthorization: Bearer stt_...or HTTP Basic with the token as the password. auditneedsaudit.view;changesandinventoryneedview, and every object is filtered by the token's host scope.- Filters:
added_after,limit(at most 1 000),next,match[type],match[id],match[version],match[spec_version], with theX-TAXII-Date-Added-Firstand-Lastheaders.date_addedis strictly increasing per collection, so a client resuming fromX-TAXII-Date-Added-Lastmisses nothing. - Writes answer 403.
structam user create -username siem-svc -service -role viewer # a token never exceeds its owner's grants
structam token create -name taxii-reader -owner siem-svc -role viewer -scopes taxii
curl -H 'Authorization: Bearer stt_...' -H 'Accept: application/taxii+json;version=2.1' \
https://structam.example.com/taxii2/structam/collections/What is published: hosts as infrastructure, applications as software, executables as file with SHA-256, change events as note, audit events as observed-data. Every object is created by the identity "Structam <instance>" (STRUCTAM_TAXII_INSTANCE, by default the host name of the public URL) and marked TLP:AMBER by default, per collection on Integrations → SIEM and TAXII. Processes are not published; configuration content, diffs and configuration content hashes never are.
Questions the docs do not answer?
Ask the people who build Structam. Installation media and licences come from KazLabs.