Audit log
What Logship records about changes to access and refused privileged actions, and how to read it.
Audit log
Every account has an audit log. It holds the account's events (agent approvals, dropped columns, verified users) and every change to who can do what in the account. Changes outside accounts, such as deployment roles and deleted users, are in the deployment's audit log.
What is recorded
- Access changes. Roles granted and revoked, relationships, custom roles and policies, table restrictions, members removed, groups and service accounts changed or deleted, service account tokens created and revoked, token revocations, dashboard visibility, agent approvals, sign-in requirements, users disabled, enabled, deleted or given a new password, and the access removed with a deleted resource.
- Alert identities. Choosing whose access an alert runs with: the previous and new identity, and who granted it.
- Refused privileged actions. A privileged or protected action (see the permission reference) refused by
a forbid policy or because the token's scopes, the access of the person who issued it, or the account's sign-in
requirements do not allow it. They are
account events (
AUTHORIZATION_DENIED) whose actor is who was refused and whose credential is the token they used; the target is the resource, the detail the permission refused, the subject who was refused, and the message says why. Only refusals of the account's own members, agents and service accounts are recorded in its log, so nobody outside an account can write into it. So that a client retrying in a loop cannot flood the log, each node records a principal's refusal of the same permission for the same reason in an account once every five minutes, on the first resource it was refused on, and when the five minutes end oneAUTHORIZATION_DENIED_REPEATEDentry says how many times it was refused again. A node records at most 10 refusals a minute per principal, 60 per account and 600 in all, counted on each node separately: a cluster of three nodes can record up to 180 refusals a minute for one account. Refusals a limit leaves out are summed once a minute in oneAUTHORIZATION_DENIALS_UNRECORDEDentry per principal and account, saying how many were not recorded, and are counted in theauthz.denials.unauditedmetric. Ordinary refusals, and refusals outside accounts, are not audited.
Each entry names who acted and, when they used a token (a sign-in session, a personal access token or a service account token), the token's ID. The token itself is never recorded. Work Logship does on its own is recorded as System, with the reason: provisioning, upgrade migration, alert evaluation, data retention, compaction, cleanup, health check, identity provider sync, sign-in (a provider's first sign-in creating its user and granting its initial roles), agent enrollment (an anonymous enrollment removing the account's expired pending agents), ingestion, messaging or audit. Sign-in requirements are recorded as the administrator who saved them.
Query text is not recorded anywhere account members can read it. Query activity
(logship.backend.search.query.executed) records who ran a query, how long it took and how many rows and columns it
returned, never the query or the address it came from.
Reading an account's log
Open Settings → Account → Audit Log. It needs account.view_audit, which the Audit reader, Security reviewer, User
manager, Access administrator and Account administrator roles grant. Show picks All entries, Access changes or Account events; Search matches the event, its details, the actor and the token ID. The newest entries are shown first; select Show older entries to page back.
The same log is queryable in the account as $metadata.account.audit:
$metadata.account.audit
| where Actor == "6f1c2c1e-6c43-4d36-9a77-2d0f8f1f2a10"
| project timestamp, Type, Message, Credential
| order by timestamp desc| Column | Contents |
|---|---|
AccountId | The account |
timestamp | When it happened |
Type | The event, such as binding.put, user.delete or AUTHORIZATION_DENIED |
Message | What changed, and on what |
Actor | The ID of the user, agent or service account who acted (for a refusal, who was refused), system or system:<reason> |
Credential | The ID of the token used, when there was one |
Source | authorization for access changes, account for account events |
Target | The resource the entry concerns, when it names one. Control characters and backslashes in names are written as \uXXXX |
Detail | Access changes: what changed on the target. Refusals: the permission refused |
Subject | Refusals: who was refused, such as user:<id> |
A token reads the log only if its scopes include query access to the account and do not limit it to other tables.
Reading the deployment's log
Open Settings → System → Audit. It needs system.view_access (Operator, Global user manager, Global access
administrator and Global administrator). Access changes lists changes outside accounts, newest first; Event
starts with filters them by event name. Grants not migrated lists
permissions from before the current access model that matched no role, with the reason. They grant nothing; grant a
current role to anyone who still needs the access.
Retention
Access changes are kept for 365 days, up to 1,000,000 entries of each account and 1,000,000 outside accounts, and account events for 365 days, up to 1,000,000 of each account, so one account's volume never ages out another's history, by default
(configuration). The audit log shows at most the newest 10,000
entries of an account. To look further back, filter $metadata.account.audit on timestamp with literal times, such as where timestamp >= datetime(2026-01-01) and timestamp < datetime(2026-02-01): those bounds are read at the store, so the
query sees the newest 10,000 entries within them. Bounds computed when the query runs, such as ago(30d), filter only
the newest 10,000.