Streaming the Identity Activity Log to Your SIEM: A Signed Event Stream
ON THIS PAGE
A security team wants identity events (sign-ins, invitations, role changes, failed enterprise sign-ins) in its own monitoring system. Instead of signing in to a console and downloading a log, the events should flow into the system by themselves.
What is sent, and where
The organisation owner gives an HTTPS receiver address in the Event stream (SIEM) section of the organisation page (Splunk, Datadog, Elastic or your own endpoint). The activity log is POSTed there every minute; the body is a JSON array (application/json) or one event per line (NDJSON, application/x-ndjson). Each request carries up to 200 events, oldest first.
- Event fields: id, at (ISO 8601), action, organizationId, actor, subject, ip and details.
- If your receiver wants its own credential, type it into the Authorization header when you create the stream (for example a Splunk HEC token); it is sent as written.
- Internal network addresses are not accepted; the receiver must be reachable from outside.
Verify the signature
Each request is signed. X-Captivo-Timestamp carries the send time (Unix seconds), and X-Captivo-Signature carries v1= followed by HMAC-SHA256(secret, "timestamp.body") in hex. Verify over the raw body, before any JSON parsing; otherwise a whitespace difference breaks the signature. The secret (whsec_…) is shown once when the stream starts. If you lose it, you delete the stream and create it again.
Delivery guarantees
- Only 2xx is success. If there is no answer in 10 seconds, or another code comes back, the events are retried.
- Retries come after 1, 2, 4… minutes and at least once an hour; redirects are not followed. What the receiver missed follows in order.
- An event can arrive twice. De-duplicate on id at the receiver; if you see an id a second time, ignore it.
The same data elsewhere
- Activity log: sign-ins, invitations, role changes, failed enterprise sign-ins and network sign-ins show on the organisation page; the last 90 days download as CSV.
- Security report: who has two-step, who has not signed in for 60 days, which invitations expired, who is paused and whose membership ends within 14 days; also as CSV.
- Alerts: if the RADIUS proxy goes silent, cannot reach AD, or enterprise sign-ins keep failing, owners and admins get an e-mail.
With Captivo ID
Settings are in the guide under report, event stream, support and alerts; the body and signature details are in the developer documentation. To manage members with a script, read the Admin API post.