Security log
Each realm keeps a log of what matters for its security: sign-ins that worked and ones that didn't, second factors, changes people make to how they sign in, what administrators did, and signs of stolen tokens. Read it through the management API with the logs:read scope.
curl "$ISSUER/api/v1/logs?limit=100" -H "Authorization: Bearer $T"
# {"events": [{"id": "01J…", "time": "2026-11-29T12:31:05.120Z", "type": "signin.failure",
# "username": "alice", "ip": "203.0.113.7", "detail": "password: wrong username or password"}, …],
# "next": "01J…"}
Reading it
- Oldest first, from a cursor. Pass
after=<next>from the previous answer and you get only what came since. - Or newest first (
order=newest), as a person reads it:after=<next>then pages back through older events, andnextis absent once the oldest has been given. A log shipper polls this way and misses nothing.nextis absent when nothing at all is newer. - Filters:
type=signin.(a prefix:signin.failure, ortoken.for every token event) anduser_id=<id>. A narrow filter over a long log may return fewer events thanlimitwith more still to come, so keep followingnext. Withuser_id, the log is read from its index by person: every page is full until their events run out. - Kept for 30 days by default, or
nod serve --log-retention-days N. Older events are deleted every hour. An org that owns a realm chooses 30, 90, 180 or 365 days for it (see Accounts); a realm with no owner org keeps--log-retention-days(30). Lowering the number deletes at the next hourly run, not at once; raising it keeps what is still there (events already deleted don't come back). Export and log streams read what is kept, as before.
What's in it
type | When |
|---|---|
signin.success | Someone signed in. detail says how: passkey, password, password and authenticator app, a recovery code (with how many are left), outside provider |
signin.failure | A sign-in was refused. username is the name tried (for passwords), and detail says why |
signup.success, signup.failure | A passkey sign-up |
mfa.failure | A wrong authenticator app or recovery code after a right password |
hook.denied, hook.failed | A hook refused a sign-in or a sign-up, or failed (detail says which and how) |
mfa.enrolled, mfa.removed | An authenticator app turned on or off from the account page |
passkey.added, passkey.removed | From the account page |
password.changed | From the account page, or by a reset link (which also signs the person out everywhere) |
scim.change | A change by an identity provider through SCIM: client_id is scim:<token id>, detail the method |
organization.joined | Someone became a member by signing in through the organization's own connection |
account.linked, account.unlinked | An outside account linked or unlinked |
user.exported | The person downloaded their data from their account |
signout | Single logout ended sessions: from an outside SAML IdP (detail says which, and how many), or from a SAML app (client_id is saml:<app id>) |
session.ended | The person signed another device out from their account page |
saml.assertion | Nod answered a SAML app's sign-in request for the person: client_id is saml:<app id>, detail its entity ID |
user.blocked, user.unblocked, user.deleted | By the management API |
admin.change | Any change made through the management API: client_id is the machine client that made it, actor_id the person it acted for (with a token on their behalf; absent for a client's own token), user_id the user changed (if any), and detail the method and path (PATCH users/01J…). Bodies are never logged. Refused requests and reads aren't logged |
ip.throttled | An address failed too many sign-ins (any accounts) and is refused for a while |
token.refresh_reuse | A refresh token that had already been rotated was used again, so it was copied. The grant is revoked, and the event is written in the same transaction |
token.code_replay | An authorization code was used twice. Its grant is revoked, in the same transaction |
client.native_confirmation | An administrator turned off (detail starts skipped) or back on (required) the confirmation of an app's loopback and private-use sign-ins (apps), through the management API or the command line, in the same transaction as the change |
Each event has ip (the connection's address, never a header) where there was a request from a person. It never holds passwords, codes or tokens.
A change made with the nod command (which works on the store directly, as an operator) is an admin.change too, with client_id cli:nod (no app can have that id) and detail the command and the id it changed (nod user create zoe): never a flag's value, a URL or a file, which may hold a secret. Commands that only read, and refused ones, aren't logged. Not yet built: logging the account commands, which have no realm to log to.
Streaming to your SIEM
Rather than polling, Nod can push the log to an HTTPS endpoint of yours: batches of up to 100 events, oldest first, as soon as they settle (about ten seconds after they happen).
curl -X PUT "$ISSUER/api/v1/logs/stream" -H "Authorization: Bearer $T" \
-H "Content-Type: application/json" -d '{"url": "https://siem.acme.example/harpora"}'
# {"url": "https://siem.acme.example/harpora", "secret": "…"} realm:admin; the secret this once
curl "$ISSUER/api/v1/logs/stream" -H "Authorization: Bearer $T" # logs:read: how delivery is going
# {"url": "…", "failures": 0, "delivered_through": "01J…", "last_delivered": "2026-11-30T01:02:03.000Z"}
curl -X DELETE "$ISSUER/api/v1/logs/stream" -H "Authorization: Bearer $T"
Or nod log-stream set REALM URL [--from-start] and nod log-stream remove REALM. A new stream starts with what happens from then on; from_start (--from-start) sends everything still kept first.
Each batch is a POST of {"realm": "acme", "events": [...]}, the events exactly as GET /logs shows them, signed like the post-login hook: Nod-Signature: t=…,v1=…, the HMAC-SHA256 of <t>.<body> with the stream's secret. Verify it, and answer 2xx once you've stored the batch.
- At least once, in order. Nod moves on only after a 2xx. A batch can arrive twice (Nod stopping between your answer and its note of it), so drop events whose
idyou already have. - When your endpoint fails, Nod waits and tries the same batch again: one second, then two, four, up to five minutes. Nothing is skipped;
GET /logs/streamshowsfailures,last_errorandretry_at. Events older than the log's retention (30 days by default) are gone, so an endpoint down that long misses them. - One sender. With several Nod servers, one at a time delivers each realm's stream.
- https to a public address only, never redirected; the address is checked again on every delivery.