# Audit & Reports

> The realm's own record of what it did for and about each user and agent, read one user or agent at a time and kept for the life of the realm.

Audit & Reports is the realm's own record of what it did: every sign-in, every token issued or refused, every token
exchange, the policy decisions that matter, every token revoked, and every change to the realm's users, groups, agents
and settings. Security and compliance teams use it to answer *what did this agent do?* and *what was done in this
user's name?*, and agent owners use it to follow their agents' work.

The one idea to read the rest by: **you read the trail one principal at a time.** Name one user or one agent and you
get everything that involved them, newest first; name one object and you get every change made to it. Users read
their own trail; reading anyone else's needs `READ` on the realm, which the `RealmViewer` privilege gives without the
right to change anything. No record is ever edited or deleted. A search across every record, and realm-wide reports,
are planned.

## What you can do

<CardGrid>
  <LinkCard title="Audit trail" description="What the realm records, and how long it keeps it." href="/audit-reports/audit-trail/" />
  <LinkCard title="What is recorded" description="Sign-ins, tokens, exchanges, decisions, revocations and changes." href="/audit-reports/audit-trail/what-is-recorded/" />
  <LinkCard title="Record fields and examples" description="Every field of a record, full examples, and the ids that tie records together." href="/audit-reports/audit-trail/record-fields/" />
  <LinkCard title="Read a user's or agent's trail" description="Everything about one principal, newest first, paged." href="/audit-reports/audit-trail/read-a-trail/" />
  <LinkCard title="Change history" description="Every change to one user, group, agent or setting, before and after." href="/audit-reports/audit-trail/change-history/" />
  <LinkCard title="Retention and sites" description="Kept for the life of the realm; each site keeps its own records." href="/audit-reports/audit-trail/retention/" />
</CardGrid>

## Get started

<LinkCard title="Get started with Audit & Reports" description="Read what happened for one user and for one agent, with every call." href="/audit-reports/get-started/" />

## Popular guides

- [Follow what an agent did](/workforce-identity/guides/agents/follow-what-an-agent-did/): an agent's tokens, decisions
  and status changes, start to finish.
- [Look into a locked account](/audit-reports/guides/look-into-a-locked-account/): the failed sign-ins behind a
  lockout, why each failed, and when.
- [See who changed a group](/audit-reports/guides/see-who-changed-a-group/): every member added or removed, by whom.
- [Record every policy decision](/audit-reports/guides/record-every-policy-decision/): a user's own allows on the
  trail too.

Every guide is in [Audit guides](/audit-reports/guides/), and every endpoint in the
[Audit & Reports API](/audit-reports/api/).

## Coming next

The gateway's own decisions on the realm's trail, a search across every record, realm-wide reports of sign-in activity
and configuration changes, an agent's trail with every agent it started, streaming to your SIEM, a copy in your own
storage, a retention period you choose, and a tamper-evident trail: see
[What's next for audit and reports](/audit-reports/audit-trail/whats-next/).

What to plan around today, what isn't offered, and every limit and default are in
[Known limitations](/reference/known-limitations/#audit--reports), [Not offered](/reference/not-offered/#audit--reports) and
[Limits](/reference/limits/#audit--reports).
