Skip to content
Audit & ReportsMarkdown

Record fields and examples

Every field of an audit record, a full sign-in, failed sign-in and token record, and the ids that tie the records of one request, one sign-in and one token together.

AvailableAPI

Every record on a user’s or agent’s trail has the same shape: what happened, when, how it went, who it is about, and the ids that tie it to the rest of its work. This page lists each field, shows three full records, and says how to follow a piece of work from one record to the next.

  • Privilege: none to read your own records; READ on the realm (RealmViewer or RealmOwner) to read anyone else’s. See Read a user’s or agent’s trail.
  • Where: the API. Records come back in events.data of a trail read.
FieldWhat it holds
idThe record’s own id
eventTypeWhat happened, such as LOGIN or TOKEN_ISSUED: see What is recorded
eventTimeWhen it happened, in UTC, written as 2026-12-04 10:15:02.123456 UTC
resultSUCCESSFUL or FAILED
userIdWho the record is about: a user’s or agent’s id, the client that asked for a refused token, or, for a few records, the name typed at sign-in (see Good to know)
principalsWho acted: for a sign-in, the names signed in; for a token, the chain of agents acting, outermost first. Empty when only the subject acted
contextThe event’s own detail: see each example below
entriesFor a sign-in, one entry per step: moduleId, result (succeeded, ignored or failed), code for a failure, and info with the address the request came from (ipAddress)
trackingIdsThe ids that tie this record to others: see Follow one piece of work
traceId, spanId, parentSpanId, transactionIdThe request the record was written in
componentThe part of the realm that wrote it, such as authentication
realmYour realm

maya signs in with her password. The record is under her id, and its one step says where she signed in from:

{
"id": "<record id>",
"eventType": "LOGIN",
"eventTime": "<event time>",
"result": "SUCCESSFUL",
"userId": "<maya's id>",
"principals": ["maya"],
"context": {
"authLevel": 0, "maxSessionSecs": 7200, "maxIdleSecs": 1800, "name": "maya"
},
"entries": [
{ "position": 0, "moduleId": "nativeStore", "result": "succeeded",
"info": { "authControlFlag": "REQUIRED", "authLevel": 0,
"ipAddress": "203.0.113.24", "moduleClass": "NativeStore" } }
],
"trackingIds": {
"sessionName": "<session name>", "sid": "<sign-in id>",
"authId": "<sign-in attempt id>", "ctxId": "<session context id>"
},
"traceId": "<trace id>",
"spanId": "<span id>",
"parentSpanId": null,
"transactionId": "<transaction id>",
"component": "authentication",
"realm": "<your realm>"
}

context holds the strength of the sign-in (authLevel) and the session’s limits in seconds; maxSessionSecs and maxIdleSecs are your realm’s session settings at the time.

maya’s password is refused. The record is under her id, with a stable code for why and the name as it was typed:

{
"id": "<record id>",
"eventType": "LOGIN_FAILED",
"eventTime": "<event time>",
"result": "FAILED",
"userId": "<maya's id>",
"principals": null,
"context": { "code": "AUTH_INVALID_PASSWORD", "principalAttempted": true, "name": "Maya" },
"entries": null,
"trackingIds": { "authId": "<sign-in attempt id>" },
"traceId": "<trace id>",
"spanId": "<span id>",
"parentSpanId": null,
"transactionId": "<transaction id>",
"component": "authentication",
"realm": "<your realm>"
}
codeWhat it means
AUTH_INVALID_PASSWORDA wrong password or code
AUTH_INVALID_PASSWORD_WARNEDA wrong password, and the user was told how many attempts are left
AUTH_MAX_ATTEMPTSThe attempt that locked the account
AUTH_USER_LOCKEDAn attempt while the account was locked, right password or not
AUTH_INVALID_USERNAMEA name the step couldn’t accept
AUTH_USER_INACTIVEThe account is inactive
AUTH_ACCOUNT_EXPIREDThe account has expired
AUTH_LOGIN_FAILEDAny other refusal by a sign-in step
AUTH_INTERNALThe realm couldn’t complete the sign-in; try again

A failed sign-in’s record doesn’t carry its steps or the address it came from today. A sign-in with a name the realm doesn’t hold is recorded under that name, not under anyone’s id.

The app https://app.example.com exchanges maya’s authorization code for tokens. The record is under her id and says what was asked, what was granted, and the key the token is bound to, if any:

{
"id": "<record id>",
"eventType": "TOKEN_ISSUED",
"eventTime": "<event time>",
"result": "SUCCESSFUL",
"userId": "<maya's id>",
"principals": [],
"context": {
"clientId": "<the app's client id>",
"grantType": "authorization_code",
"principalType": "user",
"asked": { "scope": ["openid", "profile"], "resource": [] },
"granted": { "scope": ["openid", "profile"], "audience": "<the app's client id>" },
"bound": null
},
"entries": null,
"trackingIds": {
"tokenId": "<the token's jti>", "family": "<refresh family>", "sid": "<sign-in id>"
},
"traceId": "<trace id>",
"spanId": "<span id>",
"parentSpanId": null,
"transactionId": "<transaction id>",
"component": "authentication",
"realm": "<your realm>"
}

A refused token request is "result": "FAILED", under the client that asked, with context.error and context.reason saying why. For an agent acting for maya, principalType is agent and principals lists the agents in the chain. bound holds the thumbprint of the key a sender-constrained token is bound to.

Each id in a record ties it to the other records of the same work:

IdWhereTies together
trackingIds.sidLOGIN, SESSION_UPGRADED, LOGOUT, TOKEN_ISSUEDOne sign-in and everything it led to: the session, every step-up that continued it, and every token issued from it. It is the same value as the sid claim in those tokens
trackingIds.sessionNameLOGIN, SESSION_UPGRADED, LOGOUTOne session, from its start to its sign-out. A name for the session, never its cookie
trackingIds.authIdLOGIN_STARTED through LOGIN or LOGIN_FAILEDOne sign-in attempt, page by page. Spent when the attempt ends
trackingIds.tokenIdTOKEN_ISSUED, TOKEN_EXCHANGED, TOKEN_REVOKEDOne token: its jti claim
trackingIds.parentTokenIdTOKEN_EXCHANGEDThe token an exchange started from, so a chain of exchanges reads back to its first token
trackingIds.familyTOKEN_ISSUED, TOKEN_REVOKEDA refresh token and every token it was rotated into
traceIdEvery recordEvery record one request wrote

For example, to find every token a sign-in led to, take the sid of the LOGIN record and look for the TOKEN_ISSUED records with the same trackingIds.sid. To match a token you hold to its record, decode its jti and look for that trackingIds.tokenId.

WhatValue
Records per trail page20 by default, 100 at most
OrderNewest first by eventTime
Values that never appearPasswords, secrets, session cookies, tokens, keys
SymptomCauseFix
A field is nullThe record has nothing for it, such as entries on a token recordRead the fields the event carries, as in the examples
No ACCOUNT_LOCKED record on a locked user’s trailLockout records follow the name typed, in lower case, not the user’s idRead ?person=maya, the name in lower case: see Look into a locked account
A token’s record isn’t under the userThe request was refused before a user was knownRead the trail of the client that asked
  • Lockout records follow the name typed. AUTH_FAILURE_RECORDED, ACCOUNT_LOCKED and LOCKOUT_CLEARED are recorded under the sign-in name as typed, in lower case, not under the user’s id, so they aren’t on a trail read by id today. Read them by naming the user in lower case (?person=maya). A user’s LOGIN_FAILED records are under their id.
  • eventTime isn’t RFC 3339 yet. It is written with a space and a UTC suffix; parse it as such.