An audit log is a chronological record of actions in a system. Each entry records who or what acted, the action, the resource accessed or changed, the time, the request source, and whether the action succeeded. Use that record to investigate incidents and verify changes.
If a checkout preview stops asking visitors to sign in, Vercel Runtime Logs can show whether a request invoked a Vercel Function. Check the Vercel Activity Log for changes to the project's Vercel Authentication setting.
Copy link to headingHow do audit logs differ from application logs?
Investigators can use the records to build a timeline. One entry might show a role change. The audit trail might show that the same account signed in, gained the role, and then exported customer data.
Engineers use application logs to debug code and diagnose performance issues. Audit logs help engineering, security, and compliance teams reconstruct who acted and what happened.
If you send audit events through the application logging pipeline, configure it to keep audit events through sampling and log rotation.
Copy link to headingWhat are audit logs used for?
An audit log can connect a change to a named account or another recorded identity. Teams use audit logs for:
Security monitoring: Actor and credential details help teams investigate alerts about failed sign-in attempts, role changes, and suspected access token misuse.
Forensics and incident reconstruction: Responders use these records to trace what an attacker did, including actions that went unnoticed at the time.
Compliance: The Health Insurance Portability and Accountability Act (HIPAA) Security Rule audit controls standard requires mechanisms to record and examine activity in systems that contain or use electronic protected health information.
Legal evidence: Protecting records from tampering helps reviewers assess their integrity and reconstruct what happened in a dispute.
Copy link to headingWhat should you record in an audit log?
Copy link to headingFields to capture
Control AU-3 in National Institute of Standards and Technology (NIST) Special Publication 800-53 calls for recording the event type, time, location, source, outcome, and identities of the people, systems, or resources associated with the event.
This example records a change to preview access protection using a custom schema and sample values. It doesn't show a Vercel event payload:
{ "timestamp": "2026-11-17T14:02:11.482Z", "action": "settings.access_protection.disabled", "actor": { "type": "user", "id": "usr_8f2k", "email": "dana@example.com" }, "via": [{ "type": "app", "id": "agent_42", "name": "deploy-agent" }], "target": { "type": "project", "id": "prj_123", "environment": "preview" }, "source_ip": "203.0.113.24", "user_agent": "example-cli/2.3.1", "outcome": "success", "request_id": "req_7d1c9e", "previous": { "access_protection": "enabled" }, "next": { "access_protection": "disabled" }}The fields tell you what happened and help you trace the request:
Time and correlation:
timestampuses RFC 3339 format and records the time in Coordinated Universal Time (UTC). Userequest_idto find related records in systems that log the same ID.Action and result:
actiongives the event a stable, namespaced name that alert rules can match exactly.outcometells you whether the action succeeded or failed.Identity and delegation:
actoridentifies the human, app, or process when known. For failed authentication, distinguish a claimed identity from a verified one. Useviafor delegated actions.Resource and state:
targetidentifies the resource and environment. For changes,previousandnextshow the setting before and after the action. Omit or redact secrets.Request source:
source_ipanduser_agentgive you clues about the request. A shared IP address or a client-supplied user agent can't establish the actor's identity on its own.
Copy link to headingEvents to capture
Log the events your controls require and the actions an investigator would need to reconstruct an incident:
Authentication: Successful and failed sign-in attempts, account lockouts, API token creation and deletion, and use of revoked tokens. On Enterprise, after a visitor successfully signs in to a deployment protected by Vercel Passport, Vercel records
passport-access-grantedin the Activity Log and Audit Logs. The event identifies the visitor, protected hostname, and project. Check the relevant configuration event separately to see who changed protection.Privileged activity: Admin actions, permission grants, and role changes.
Configuration: Changes to environment variables, DNS records, access protection, and other settings.
Deployment activity: Deployments, rollbacks, and deletions.
Data activity: Access to sensitive records and bulk exports.
Copy link to headingHow long should you keep audit logs?
Use the requirements for each record to set its retention period. HIPAA's six-year rule, for example, covers required Security Rule documentation and doesn't set a blanket retention period for raw logs.
When several minimum periods apply to the same records, account for the longest applicable minimum and any separate privacy, deletion, or preservation obligations. If your logs contain personal data, document why you need to keep it under the storage limitation principle of the General Data Protection Regulation (GDPR).
Copy link to headingHow do you protect audit logs from tampering?
Tamper-evident logging helps reviewers detect changes, even years later. NIST control AU-9 calls for protecting audit information and logging tools from unauthorized access, modification, and deletion. It also calls for alerting designated staff when unauthorized access to, modification of, or deletion of audit information is detected.
Use access controls and storage protections to prevent unauthorized changes. Hashes and signatures can help detect changes after they happen:
Hash chaining: Each entry stores a cryptographic hash of the previous entry. If someone edits a record, its hash no longer matches the hash stored in the next entry. Verify the chain against a trusted checkpoint stored separately. A checkpoint covers only the records it commits to.
Signed batches: The system computes a Merkle root, a single hash that represents a batch of entries, and signs it. To check for changes, authenticate the signed root with a trusted public key, then compare it with a root recomputed from the batch. AU-9(3) covers cryptographic protection of audit information.
Write-once storage: Write once, read many (WORM) storage can prevent changes or deletion during the retention period. Amazon S3 Object Lock protects individual object versions. Users with the required permission can bypass governance mode. In compliance mode, users, including the account root user, can't overwrite or delete the protected version or shorten its retention period.
Read-only privileged access: Grant designated reviewers read-only access to audit information, as described in AU-9(6). Limit management permissions to a subset of privileged users under AU-9(4).
A strict write-once lock can also block routine cleanup, such as deleting personal data you logged by mistake. Set the retention period before you lock the records.
Copy link to headingHow do you attribute AI agent actions?
For a delegated action, record the agent and the person or system it acted for. Send records to a restricted store that the agent has no permission to modify or delete.
An agent audit record needs these fields:
Identities: A stable identity for the agent, separate from any human account, and the identity of the person or system that made the request.
Tool calls: The tool name and call ID for each call the agent made.
Inputs: The request ID and the minimum input metadata you need to investigate the action. Don't capture raw prompts or tool arguments by default. If you need to capture them, redact sensitive data and restrict access.
Approvals: If the action required approval, record the approval ID and the approver's identity.
Results: The change the agent made and whether it succeeded.
The OpenTelemetry GenAI conventions are in development and define gen_ai.agent.id for hosted agents and gen_ai.tool.call.id for the tool call ID supplied by the model or provider. The tool span conventions make tool argument capture opt-in because arguments may contain sensitive data. See the agent auditing guide for an example that connects a request, approval, tool call, and resulting change.
Give the agent access only to the resources it needs for its task. That limits the impact of unintended actions and helps reviewers spot activity outside the task.
Copy link to headingApply five audit logging best practices
Copy link to headingNormalize records to a shared schema
It's harder to build a timeline when one service labels the actor user, another uses principal, and a third logs only an email address. Map source fields to a shared schema so investigators can query audit records across services. Preserve the original record when you need it for evidence.
Copy link to headingStream audit logs and alert on high-risk events
A security information and event management (SIEM) system collects events from connected sources in one place. The security team can compare them and manage its own copy.
Set SIEM alerts for patterns like these, which map to techniques in MITRE ATT&CK, a catalog of attacker behavior:
An account gaining admin access or receiving another privileged cloud role (T1098.003).
A sign-in with valid credentials from an unexpected location (T1078).
An unexpected change that disables or modifies cloud logging (T1685.002).
Start with high-risk events your team can investigate. Investigate matches to see whether the activity was legitimate.
Copy link to headingSeparate log administration from system administration
Administrators with deletion rights can erase evidence of their own actions. Put a small, named group in charge of audit logs, separate from the people who manage production access. A separate account or bucket gives security control over who can delete records, though it adds another set of permissions to manage.
Copy link to headingChoose storage based on how soon you need the logs
Keep the records you need for immediate analysis in searchable storage. Move older records to an archive if your retention requirements allow it, and test that you can retrieve them.
Copy link to headingTest an alert before relying on it
Use an isolated Vercel test project on a team with an Audit Log Drain connected to your SIEM.
Change the project's Vercel Authentication setting.
Find the
project-sso-protectionevent in your SIEM and check the actor and project details your rule relies on.Confirm the alert fires for that event.
Restore the original setting.
Set a review schedule based on risk and applicable requirements. Test archive retrieval separately and verify signatures or hash chains if you use them.
Copy link to headingHow do you trace a configuration change on Vercel?
For the checkout incident, find the project's project-sso-protection events in the Activity Log. These events show who changed Vercel Authentication and when. If you use an Audit Log Drain, search its destination for the same event name. In the Enterprise Audit Logs CSV export, look for project.sso_protection.disabled to confirm that Vercel Authentication was turned off for the project. Check actor_vercel_id, timestamp, and location for the actor, time, and source IP.
On Enterprise, team members with the Owner or Security role can choose a time range within the last 90 days for the export. The CSV export includes timestamp, action, actor_vercel_id, actor_name, actor_email, location (the source IP), user_agent, request_id, previous, and next.
Copy link to headingStream audit events to a SIEM with Audit Log Drains
On Enterprise, Audit Log Drains forward Activity Log events with audit metadata in the vercel.audit_log.v1 schema. Supported destinations include Datadog, Splunk, Panther, Amazon S3, and custom HTTPS endpoints. For S3 and custom endpoints, choose JSON or newline-delimited JSON (NDJSON). Datadog, Splunk, and Panther use fixed formats.
A drain covers the whole team and doesn't support filters, sampling, or project selection. To retain new events beyond the export window, you can send them to Amazon S3 and set retention and access policies on the bucket. Configure routing at your destination and check that events arrive. Use Activity Log event names in your alert rules. If you use Custom SIEM Log Streaming, follow the migration guide to update and test your rules. Legacy action names don't map one-to-one to drain events.
Copy link to headingTrace Vercel Agent writes and dashboard approvals
Vercel Agent is in public beta on Pro and Enterprise and is read-only by default. Changes to Vercel resources generally require approval of a plan that lists the operations and resources. The Vercel Agent permissions docs explain exceptions, including temporary preview share links. GitHub writes have separate permissions and don't require plan approval.
When Vercel Agent writes to a Vercel resource, Vercel attributes the write to the user acting through the agent. In a drain event, actor identifies who took the action, and the optional via list shows who acted on their behalf. The Activity Log records session starts and dashboard approvals as separate events that name the user. Look for vercel-agent-elevated-permissions-approved to identify who approved the plan. The corresponding request event, vercel-agent-elevated-permissions-requested, is a system event. To investigate an approved change, review the approval and the write separately.
Copy link to headingManage team identity with SAML SSO and Directory Sync
If engineers share a login or a former employee still has access, the audit log may tell you which account acted without telling you who used it. SAML SSO, or single sign-on using Security Assertion Markup Language, lets members sign in through the company's identity provider. A team Owner signed in through SAML SSO can enforce it for access to team information. It's available on Enterprise and as a paid add-on on Pro. On Enterprise, Directory Sync uses the System for Cross-domain Identity Management (SCIM) protocol to sync team membership with your identity provider. You can map directory groups to Vercel team roles. Directory Sync removes users from the team when they're removed from the connected directory. The Enterprise Security role can access Audit Logs and manage Deployment Protection, but it doesn't grant permission to deploy by default.
Klaviyo uses Passport with Okta to keep its deployed internal apps private and require sign-in.
Copy link to headingTrace production changes on Vercel
Vercel's team logs cover recorded team and configuration events. To trace business actions in your application, record them in the application's audit trail.
Audit Logs: On Enterprise, use the CSV export to see who made a recorded change and check the old and new values when the event includes them.
Audit Log Drains: On Enterprise, forward team activity to a monitoring or storage destination so you can compare events and retain them longer.
Vercel Agent: Vercel attributes writes to Vercel resources to the user acting through the agent and records dashboard approvals separately.
SAML SSO, Directory Sync, and the Security role: Use SAML SSO on Enterprise or as a paid add-on on Pro. On Enterprise, sync team membership with Directory Sync and give reviewers access to Audit Logs with the Security role.
Deployment Protection: Control access to preview and production URLs. Vercel Authentication is available on all plans. Password Protection is billed per protected project on Pro and is included at the team level on Enterprise. Passport and Trusted IPs are Enterprise features.
If you're an Enterprise team Owner, follow Vercel Academy's Audit Logs exercise to export a CSV, set up a drain, and verify that a test event reaches your destination.
Copy link to headingFrequently asked questions about audit logs
Copy link to headingDoes HIPAA require audit logs?
Yes. The Security Rule's audit controls standard requires ways to record and review activity in systems that contain or use electronic protected health information. Covered entities and business associates must also regularly review records of system activity. These provisions don't set a fixed review interval.
Copy link to headingCan audit logs contain personal data under GDPR?
Yes. IP addresses and user IDs can be personal data if they identify someone directly or indirectly. The European Commission's guidance explains that pseudonymized data remains personal data when someone can be re-identified. Under the GDPR's data minimization principle, collect only the data you need for the purpose of the log.
Copy link to headingDo audit logs need synchronized clocks?
Yes, when you need to compare records across systems. Clock drift can make events appear out of order. Use a common time source and record timestamps in UTC or with an explicit offset. PCI DSS v4.0.1 requires time synchronization under 10.6.1 and requires you to log, monitor, and review changes to time settings on critical systems under 10.6.3.
Copy link to headingHow often should audit logs be reviewed?
PCI DSS v4.0.1 requires at least daily review of specified logs and events under 10.4.1 and periodic review of other in-scope system logs on a schedule set by targeted risk analysis under 10.4.2. It also requires automated mechanisms for log reviews. Use alerts for high-risk events that need a faster response than a scheduled review can provide.