Audit Logs
Audit logs record administrative and security events across your organization and its projects: who did it, what they changed or viewed, when, from where, and whether it worked. Use them for security reviews, investigations and compliance evidence.
Open Organization Settings → Audit Logs. Audit logs need the audit-logs entitlement (Enterprise plans). Viewing needs auditLogs.viewer:read: Owner, Security & Compliance and Auditor among the built-in roles. A member who holds this permission only through a project role sees only the entries for those projects.
Columns
| Column | Meaning |
|---|---|
| Time | When the event happened. |
| Project | The project, or an Organization badge for organization-wide events. |
| Actor | The user, the API key (by public key), or System for scheduled jobs. SCIM changes show the organization API key your identity provider uses. |
| Resource Type | What was acted on, such as apiKey, orgMembership, customRole or dataRetention. |
| Resource ID | The ID of that resource. |
| Action | What happened, such as create, update, delete or user.login. |
| Outcome | SUCCESS or FAILURE. |
| IP Address and User Agent | Where the request came from. |
| Before and After | The state of the resource before and after the change. |
The newest entries come first, 50 per page. The Content views only switch limits the table to content view entries (see below). There is no search or date range in the viewer; export the log for other analysis. Each entry also keeps the actor's email, name and roles at the time of the event, and the person acted on where there is one, so entries stay meaningful after a user is deleted.
What is recorded
- Access and membership: invitations, organization and project role changes, removals, and custom role changes. See Members & Roles.
- SCIM provisioning: users created, reactivated and deprovisioned, role and profile updates, and group changes, with the organization API key as the actor. A deprovisioning entry (
scim.deprovision) gives the counts of Budget AI keys blocked and flagged, claim links revoked and API keys revoked or flagged, and separate entries list each blocked key and the keys to rotate, never their secrets. See SCIM Provisioning. - Group role mapping: mappings created, changed and removed, every role change a mapping makes (with the group and whether it came from a sign-in, SCIM, the Admin API or the settings page), refused changes, and sign-ins without a groups claim. See Group Role Mapping.
- Sign-in: sign-in, failed sign-in, sign-in code challenge, sign-up, sign-out, password reset requests and outcomes, and data processing consent accepted or withdrawn. See Authentication & Security.
- Keys and credentials: project and organization API keys, LLM connections, Budget AI keys and provider credentials (including blocks, unblocks, rotations and step-up bypasses), agent suspensions and resumes (resource type
agent, actionssuspendandresume, with the number of keys changed), and Discover AI enrollment keys and device certificates. A device certificate issued on a key held in software writes ashadowAiDeviceCertificateentry with the actionsoftware_key_issued, and turning the project's hardware key requirement on or off writes ashadowAiProjectConfigentry with the actionset_require_hardware_key. See Devices. Budget AI role assignments on Budget AI → Access writegatewayRoleAssignmententries (create,delete). - Settings: organization and project changes (including logos and the SCIM provisioning settings), data retention changes (
organization.data_retention_changed), integrations (Slack, Jira, Linear, PagerDuty, ServiceNow, PostHog, blob storage), directory and Microsoft 365 connectors, automations, exports and protected prompt labels. Acknowledging or resolving an alert on the Alerts page writes anautomationAlertentry with the actionacknowledgeorresolve. Changing an agent's or the project's health alert limits writes aprojectentry with the actionupdate. Ignoring or no longer ignoring a server error writes asupportErrorGroupentry with the actionupdate. Custom dashboards writedashboardentries forcreate,clone,import,update(rename or description) anddelete; layout changes are not recorded. A project model discount writes amodelentry with the actiondiscount.setordiscount.clear. See Models & Pricing. - Project content: prompts, datasets, scores and score configs, evaluators, annotation queues, comments, and trace deletions.
- Governance: guardrail and PII settings, compliance requests and approvals, evidence, agent profiles (including declared tools), AI Inventory changes and drift alerts. Export profiles on Evidence Collection writes an entry with resource type
governanceProfile, actionexportand the number of agents. The executive digest writesgovernanceDigestScheduleentries for schedule changes (create,update) and test sends (sendTest), andgovernanceDigestRecipiententries when a recipient is added (create) or removed (delete). - Content views: every time someone opens prompt or response content. See Content views.
- Export downloads: every download of an export file, with the user, the time and the file. See Export downloads.
- Page views: opening sensitive pages, such as API keys, project members, project General settings, the Governance Audit & Export page, PII settings and the audit log itself.
- Okta access reconciliation: drift found, members removed, keys blocked or flagged, and aborted runs. See SCIM Provisioning.
Content views
When content view auditing is turned on, opening prompt or response content writes an audit entry with the action viewContent. It is off by default and is a deployment setting: on a deployment managed by ANTS Platform, ask your ANTS Platform team; on a self-hosted deployment, set CONTENT_VIEW_AUDIT_ENABLED=true. This covers opening a trace, in the side panel or as a full page, and opening a session. Each entry records:
- Actor: who opened the content, with their roles at the time.
- Resource Type and Resource ID: the trace or session that was opened, in its project.
- Time, IP Address and User Agent: when and from where.
In the console, only members with the content permission (pii:read) can open content, so content view entries show who actually read prompts and responses, not who only listed traces. See Data Privacy.
Entries are limited in these ways:
- One entry is written per person per trace or session every 5 minutes, even though opening a trace makes several requests.
- Nothing is written when no content is returned: for someone without the content permission, for someone viewing a publicly shared trace without signing in, or when Trace input and output is off.
- If an entry cannot be written, the content is not shown. Content is never displayed without a record.
- Trace lists that show a short input or output preview are not recorded, only opening a trace or a session.
To review content access, open Organization Settings → Audit Logs and turn on Content views only. The switch keeps your usual visibility: if you see audit logs only through a project role, you see only those projects' entries. To answer "who read this person's prompts?", match the resource IDs of content view entries to that person's traces and sessions, or export the log and do the same in your own tools.
Export downloads
Export files can only be downloaded through the console, and every download writes an audit entry before the file is released. The entry has the resource type batchExport, the action download, the user, the time, the export name, and the file's SHA-256 checksum and size. If the entry cannot be written, the download does not start.
This covers the Download buttons in Project Settings → Exports, the links in Export ready emails, and audit log exports. With the create entry written when the export is requested and the complete entry written when the file is finished (which also records the checksum and size), this is the chain of custody for each exported file. See Data Exports to verify a file against its checksum.
Limits:
- A download entry proves that a named user was given a link to a file with a known checksum. It does not prove how many bytes were pulled.
- Files that a blob storage export writes to your own bucket are outside ANTS Platform, so reads from your bucket are not recorded. Use your storage provider's access logs.
Export
Select Export above the table and choose CSV, JSON or JSONL. The export runs in the background and contains every entry you can see. When it is ready you get an email with a download link (if the deployment can send email) and an Export ready notification. Audit log exports have no list page, so the emailed link is the way to download them. Only the person who requested the export can download it, while they still have audit log access, and the link works for one hour after the export finishes. Downloading the file is itself recorded as an export download. Audit log exports do not appear in a project's Exports tab.
The export file has these fields: id, createdAt, updatedAt, type, apiKeyId, userId, orgId, userOrgRole, projectId, userProjectRole, resourceType, resourceId, action, before, after. It does not include the actor's email or name, the outcome, the IP address or the user agent. For those, use the S3 stream below.
Stream to S3 for your SIEM
A deployment can copy audit log entries to an S3 or S3-compatible bucket on a schedule, for your SIEM to collect. This is set with environment variables on the deployment. On a deployment managed by ANTS Platform, ask your ANTS Platform team.
| Setting | Default | Meaning |
|---|---|---|
LANGFUSE_S3_AUDIT_LOG_EXPORT_IS_ENABLED | false | Turns the export on. |
LANGFUSE_S3_AUDIT_LOG_EXPORT_BUCKET, _PREFIX, _REGION, _ENDPOINT | none | Destination. |
LANGFUSE_S3_AUDIT_LOG_EXPORT_ACCESS_KEY_ID, _SECRET_ACCESS_KEY | none | Credentials. Can be left empty when the deployment's cloud role can write to the bucket. |
LANGFUSE_S3_AUDIT_LOG_EXPORT_SSE, _SSE_KMS_KEY_ID | none | Server-side encryption: AES256 or aws:kms. |
LANGFUSE_S3_AUDIT_LOG_EXPORT_CRON | 0 * * * * | Schedule. Hourly by default. |
LANGFUSE_S3_AUDIT_LOG_EXPORT_INCLUDE_DIFFS | false | Include the before and after state. |
LANGFUSE_S3_AUDIT_LOG_EXPORT_START_AT | none | Earliest entry to export. |
How the files look:
- One JSON object per line (
.jsonl). - Files are grouped by organization and day:
<prefix>audit-logs/org_id=<organization id>/dt=<YYYY-MM-DD>/. Grant each consumer read access to its own organization's path. - Entries with no organization, such as a failed sign-in for an unknown email, go under
org_id=_unscoped. - Before and after state is left out by default. When it is included, credential fields such as secret keys and client secrets are replaced with
[REDACTED]. - Each run continues from the last exported entry. Delivery is at least once, so deduplicate on the entry
id. - Files are not compressed.
Retention
Audit log entries are kept indefinitely. The organization data retention setting does not delete them.
Next steps
- Audit & Export: generate audit and evidence reports for governance.
- Members & Roles: who can view audit logs.
- Access Control (RBAC): the permission model.