Docs/Administration/Audit Logs

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 or was refused. 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. Governance Owner and the viewer roles do not include it. A member who holds this permission only through a project role sees only the entries for those projects. Super Admins also see entries that belong to no organization, such as Super Admin grants.

Search and filters

The bar above the table narrows the log. Filters combine with each other and with your visibility, so they never show entries you could not see otherwise.

FilterMatches
Search everythingAction, resource type, resource ID, and the name or email of the actor and the target user. Without a date range, search covers the last 90 days.
User (name or email)The actor's name, email or user ID.
ActionPart of the action, for example update or denied.
Object (e.g. apiKey)Part of the resource type.
Object IDPart of the resource ID.
OutcomeAny outcome, Success, Failure or Denied.
From and To datesEntries from the start of the first day to the end of the last day.

Clear filters resets them. The Content views only switch limits the table to content view entries. Filters are kept in the page address, so you can bookmark or share a filtered view.

Columns

ColumnMeaning
TimeWhen the event happened.
ProjectThe project, or an Organization badge for organization-wide events.
ActorThe user, the API key (by public key), or System for scheduled jobs. SCIM changes show the organization API key your identity provider uses.
Target userThe person the action was done to, such as who received a role or was invited.
Resource TypeWhat was acted on, such as apiKey, orgMembership, customRole or dataRetention.
Resource IDThe ID of that resource.
ActionWhat happened, such as create, update, delete or user.login.
OutcomeSUCCESS, FAILURE or DENIED.
IP AddressThe source address ANTS Platform trusts. See Source IP address.
Client IP (proxy-reported)The user's own address as reported by a trusted corporate proxy. Not verified.
User AgentThe browser or client that made the request.
ChangesOnly the fields that changed: the old value in red and struck through, the new value in green.

The newest entries come first, 50 per page by default. A Changes cell shows up to three fields; select Show all N changes or Show full values to expand the row in place. 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 or leaves.

Source IP address

The IP Address column records an address the caller cannot choose. ANTS Platform reads the X-Forwarded-For header from the right and skips only the proxies it trusts, so a value a client writes into the header is never recorded as its address. Behind a corporate proxy, this is the proxy's egress address. When the request comes from a trusted corporate proxy, the user's own address that the proxy reports is recorded separately in Client IP (proxy-reported).

The trusted proxies are a deployment setting. On a deployment managed by ANTS Platform, ask your ANTS Platform team. On a self-hosted deployment, set them on the web service:

SettingHelm valueDefaultMeaning
TRUSTED_PROXY_HOPSweb.config.trustedProxyHops1How many proxies in front of the service add to X-Forwarded-For. Used when no ranges are set.
TRUSTED_PROXY_CIDRSweb.config.trustedProxyCidrsnoneComma-separated CIDR ranges of your load balancer and ingress. Preferred over the hop count when set.
TRUSTED_EGRESS_PROXY_CIDRSweb.config.trustedEgressProxyCidrsnoneComma-separated CIDR ranges of your corporate proxy's egress. Only requests from these ranges fill Client IP (proxy-reported).

Entries that are not valid CIDR ranges are skipped and logged as a warning on the server.

History

People who can open the audit log see a History action on these objects:

WhereOpens the history of
Budget AI Keys, in a key's row menuThat key
A Budget AI model group's detail pageThat model group
An agent's Governance profile pageThat agent
Organization Settings → Members, the icon on a member's rowEntries that mention the member's email
Organization Settings → Custom Roles, the icon next to a roleThat custom role

History opens a side panel with the latest 50 entries for the object, newest first: action, outcome, time, actor, target user, IP address and the changes. Open in the full audit log opens the audit log filtered to that object.

Alerts about an object also link to its audit entries. Slack and Teams alerts have a View audit entries button, and alert emails have a View audit entries line. See Alerts.

What is recorded

  • Access and membership: invitations, organization and project role changes, removals, and custom role changes. Removing or demoting an Owner, which only a Super Admin can do, writes an orgMembership entry with the action ownerRemoved or ownerDemoted. See Members & Roles. Budget AI role assignments write gatewayRoleAssignment entries (create, delete) that name the person.
  • Super Admin and platform changes: granting and removing Super Admin access (platformAdmin, actions grant and revoke), platform settings (platformSettings, update), and organizations created, suspended or reactivated by a Super Admin (organization, actions create, suspend and reactivate). Super Admin grants belong to no organization, so only Super Admins see them.
  • Denied actions: see Denied actions.
  • 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, actions suspend and resume, with the number of keys changed), and Discover AI enrollment keys and device certificates. When a project or organization API key expires, a System entry with resource type apiKey and the action expire is written once. A device certificate issued on a key held in software writes a shadowAiDeviceCertificate entry with the action software_key_issued, and turning the project's hardware key requirement on or off writes a shadowAiProjectConfig entry with the action set_require_hardware_key. See Devices.
  • Settings: organization and project changes (including logos and the SCIM provisioning settings), data retention changes (organization.data_retention_changed), audit log retention changes (organization.audit_retention_changed), the content view setting (auditSettings, update), integrations (Slack, Jira, Linear, PagerDuty, ServiceNow, PostHog, blob storage), directory and Microsoft 365 connectors, automations, exports, protected prompt labels, the default evaluation model (defaultEvalModel), and billing payment methods added or removed (billingPaymentMethod, actions add and remove). Acknowledging or resolving an alert on the Alerts page writes an automationAlert entry with the action acknowledge or resolve. Changing an agent's or the project's health alert limits writes a project entry with the action update. Ignoring or no longer ignoring a server error writes a supportErrorGroup entry with the action update. Custom dashboards write dashboard entries for create, clone, import, update (rename or description) and delete, and their widgets write dashboardWidget entries for create, update, copy and delete; layout changes are not recorded. A project model discount writes a model entry with the action discount.set or discount.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, LLM and framework inventory approvals (llmInventoryApproval and frameworkInventoryApproval, actions approve and revoke, with the old and new state), and drift alerts. Export profiles on Evidence Collection writes an entry with resource type governanceProfile, action export and the number of agents. The executive digest writes governanceDigestSchedule entries for schedule changes (create, update) and test sends (sendTest), and governanceDigestRecipient entries when a recipient is added (create) or removed (delete).
  • Discover AI: tool registry requests and reviews (shadowAiRegistryProvider). The AI access policy writes aiAccessPolicy entries when a draft is saved (saveDraft) or discarded (discardDraft), a policy is published (publish) or an earlier version restored (restore), and Stop all blocking is used (killSwitch). Changing the access policy settings, including the block switch, writes an aiAccessSettings entry with the action update.
  • Content views: every time someone opens prompt or response content, when the setting is on. 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.
  • Audit retention purges: each batch of old entries removed by audit log retention writes a System entry with resource type auditRetention and the action purge.

Denied actions

When the server refuses a request because the caller lacks permission, it writes an entry with the outcome DENIED, resource type accessDenied and the action denied. This covers refused calls from the console and every 403 answer from the public API. The entry records who made the request (the user, or the API key once its secret is verified), the procedure or route as the Resource ID, the object they tried to reach where one was named, and where the request came from. It is filed under an organization or project only when the caller belongs to it.

To keep the log readable when a page or script retries:

  • One entry is written per person, action and object every 5 minutes.
  • At most 60 denied entries are written per person, and 600 per source address, each hour. Past that limit, one summary entry with the action denied.suppressed is written per hour instead.

Filter Outcome by Denied to review them.

Content views

When content view logging is on, opening prompt or response content writes an audit entry with the action viewContent. It covers:

  • Opening a trace, in the side panel or as a full page, and opening a session.
  • Opening the PII detections list (resource type piiDetections).
  • Reading a single trace, session or observation through the public API, and listing traces or observations through the public API (resource ID list). These entries name the API key.

Each entry records the actor with their roles at the time, the resource type and ID in its project, the time, the IP address and the user agent.

Turn content view logging on

Go to Organization Settings → Security and use Log when content is opened in the Audit card. Until someone sets it for the organization, it follows the deployment default, shown under the switch. Changing it needs feature admin access (Owner and Security & Compliance among the built-in roles). Each change writes an auditSettings entry and raises the Audit settings changed automation event.

The deployment default is off. On a deployment managed by ANTS Platform, ask your ANTS Platform team to change it; on a self-hosted deployment, set CONTENT_VIEW_AUDIT_ENABLED=true (Helm web.config.features.contentViewAudit).

Content views by a Super Admin are always recorded, whatever the setting.

What the entries show

Entries are written only when content is actually returned, so they show who read prompts and responses, not who listed traces or opened the content-free view. Nothing is written for someone viewing a publicly shared trace without signing in, or when Trace input and output is off. See Data Privacy for who can read content.

  • One entry is written per person per item every 5 minutes, even though opening a trace makes several requests.
  • In the console, if an entry cannot be written, the content is not shown. Through the public API, the response is still returned and the failed write is logged on the server.
  • Trace lists in the console that show a short input or output preview are not recorded, only opening a trace or a session.

To review content access, 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 as CSV, as JSON, as JSONL or as PDF evidence report. The export uses the filters and date range set above the table (not the Content views only switch) and contains every matching entry you can see. It runs in the background. 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.

CSV, JSON and JSONL files have these fields: id, createdAt, updatedAt, type, apiKeyId, userId, userEmail, userName, targetUserId, targetUserEmail, targetUserName, outcome, ipAddress, clientIp, userAgent, orgId, userOrgRole, projectId, userProjectRole, resourceType, resourceId, action, before, after.

PDF evidence report

The PDF evidence report is an A4 document for auditors, titled Audit Log Evidence Report. Its cover lists:

  • The organization name.
  • Period: the date range, or "All recorded activity".
  • Generated by and Generated at (UTC).
  • Entries in this report.
  • Filters applied.
  • Entries checksum (SHA-256): the SHA-256 of the entries in the report, one JSON line per entry in the order shown.

The entries follow, each with the time, action, resource type and ID, actor, outcome, IP address, client IP and target user, with page numbers. If the export reaches the export size limit, the cover says the report shows partial results. The checksum of the PDF file itself is recorded with the export and in its download entry.

Integrity

A deployment can protect the audit log so that nobody, an Owner included, can quietly change it. Both protections are off by default and are switched on per deployment:

  • Write protection: once switched on, the database refuses to change or delete audit entries, and the switch cannot be turned off from the application. The only deletions allowed are those made by audit log retention.
  • Hash chain: every entry is sealed in order, each seal carrying the hash of the entry before it, with one chain per organization. A daily check recomputes the new part of the chain, and a weekly check recomputes all of it. It finds an entry that was changed or deleted, a seal that was changed or removed, and seals cut off the end.

When the protection is on, the audit log shows a badge next to Content views only:

BadgeMeaning
Integrity verified with the timeThe last check found your organization's chain intact. Hover to see how many entries were checked.
Integrity check failed with the timeThe last check found a break in your organization's chain, or in entries that belong to no organization.
Integrity not checked yetThe protection is on but no check has run yet.

A failed check raises the Audit log integrity check failed automation event, only in the affected organization, so you can route it to Slack, Teams, email or another channel. See Automations.

What a verified badge proves, and what it does not:

  • Without a seal key, the chain shows accidental and casual edits. Someone with write access to the database could still change an entry and recompute every seal after it.
  • With a seal key held outside the database, seals are keyed hashes that a database writer cannot forge without the key. Anyone who holds the key still can.
  • The badge does not prove that every event was recorded in the first place, only that recorded entries were not changed or removed since they were sealed.
  • The S3 copy for your SIEM is an independent record that survives either case.

On a deployment managed by ANTS Platform, ask your ANTS Platform team to turn integrity on. On a self-hosted deployment, set these on the worker:

SettingHelm valueMeaning
AUDIT_LOG_IMMUTABLEworker.auditLogIntegrity.immutabletrue turns on write protection, sealing and the daily check. Removing it later does not turn protection off.
AUDIT_LOG_SEAL_HMAC_KEYworker.auditLogIntegrity.hmacKeySecretA seal key of at least 32 characters, from a secret kept out of the database. Seals then use HMAC-SHA-256.
AUDIT_LOG_SEAL_HMAC_KEYSworker.auditLogIntegrity.hmacKeysSecretA list of keys (id:secret,id:secret) for rotation. The first signs new seals; keep older keys while seals made with them exist.

If the worker refers to a key secret that does not exist, it does not start.

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.

SettingDefaultMeaning
LANGFUSE_S3_AUDIT_LOG_EXPORT_IS_ENABLEDfalseTurns the export on.
LANGFUSE_S3_AUDIT_LOG_EXPORT_BUCKET, _PREFIX, _REGION, _ENDPOINTnoneDestination.
LANGFUSE_S3_AUDIT_LOG_EXPORT_ACCESS_KEY_ID, _SECRET_ACCESS_KEYnoneCredentials. Can be left empty when the deployment's cloud role can write to the bucket.
LANGFUSE_S3_AUDIT_LOG_EXPORT_SSE, _SSE_KMS_KEY_IDnoneServer-side encryption: AES256 or aws:kms.
LANGFUSE_S3_AUDIT_LOG_EXPORT_CRON0 * * * *Schedule. Hourly by default.
LANGFUSE_S3_AUDIT_LOG_EXPORT_INCLUDE_DIFFSfalseInclude the before and after state.
LANGFUSE_S3_AUDIT_LOG_EXPORT_START_ATnoneEarliest 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.

When no export to the bucket has succeeded for 3 hours, the Audit export stopped automation event is raised.

Retention

Audit log entries are kept indefinitely by default. The organization data retention default and categories do not delete them. To remove old entries, set Keep audit logs for on the Data Retention page: 1, 2, 3, 5 or 7 years, or Indefinite.

  • The period is never shorter than one year.
  • Shortening it takes effect after 7 days. Until then the previous period applies, so nothing is removed for 7 days after a change from Indefinite.
  • When the S3 stream is on, entries are removed only after they have been delivered to the bucket.
  • Only an organization's oldest entries are removed, and each removal is recorded, so the integrity check still passes.
  • Each change writes an organization.audit_retention_changed entry and raises the Audit settings changed event. A purge that cannot finish raises the Retention purge failed event.

Next steps

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026