Audit Logs - version 2

Last updated Oct 22, 2026 Cloudflare Audit Logs are account-based. All user-initiated actions are recorded automatically across both the Cloudflare API and dashboard. System-initiated logs are also captured to reflect actions taken automatically by Cloudflare systems, such as configuration updates, background processes, or internal policy enforcement.

When a user-initiated action triggers additional automated behavior, corresponding system-initiated logs will be generated. In some cases, user-initiated logs include additional enrichments that provide more context about what was changed, offering deeper visibility into the full lifecycle of the action.

When an action occurs, it is streamed through Cloudflare's audit logging pipeline and stored. This ensures consistent visibility into activity across all products.

For more detailed information about how the user-initiated actions are logged automatically, refer to the Cloudflare Blog ↗︎.

Note

A transition plan from Audit Logs v1 to Audit Logs v2 will be communicated in due course.

Key features

Audit Logs (version 2) provide a unified and standardized system for tracking and recording actions across Cloudflare products. This system enhances transparency and accountability by offering comprehensive insights into user-initiated and system-initiated activities within your Cloudflare environment.

  • Standardized logging: Audit logs are automatically generated in a consistent format across all Cloudflare services, ensuring uniformity and eliminating inconsistencies.
  • Expanded product coverage: Audit Logs covers \~95% of Cloudflare products, capturing actions from key endpoints, such as /accounts, /zones, /organizations, /user, and /memberships APIs.
  • Granular filtering: Uniformly formatted logs allow for precise filtering by actions, actors, methods, and resources, facilitating efficient investigations.
  • Enhanced context and transparency: Each log entry includes detailed context, such as the authentication method used, the interface (API or dashboard) through which the action was performed, and mappings to Cloudflare Ray IDs for improved traceability.
  • Comprehensive activity capture: Audit Logs records create, update, delete, and view actions for the same endpoints covered above, with a small number of excluded endpoints.

Retention

  • Audit logs are retained for 18 months before being deleted. No additional setup is required.
  • In the Audit Logs v2 UI, queries are limited to the most recent 90 days for performance reasons. To access the full 18 months of data, use the API or Logpush.
  • Enterprise customers can use Logpush to store audit logs beyond 18 months.

Note

Approximately 30 days of logs from the Beta period (back to \~February 8, 2026) are available at GA. These Beta logs will expire on \~April 9, 2026. Logs generated after GA will be retained for the full 18 months. Older logs remain available in Audit Logs v1.

Access Audit Logs

You can retrieve audit logs using the Cloudflare dashboard, the API, or Logpush.

API

Audit Logs are available through the Cloudflare API. To retrieve audit logs, use the following endpoint:

https://api.cloudflare.com/client/v4/accounts/{account_id}/logs/audit

Below is an example request to retrieve audit logs for a certain period of time along with its corresponding response. Replace the example values in the URL with your actual values:

  • account_id: Your Cloudflare account identifier.
  • since (required): Start date for the audit log retrieval. Accepts yyyy-mm-dd (interpreted as UTC) or RFC3339 timestamp ( yyyy-mm-ddTHH:MM:SSZ).
  • before (required): End date for the audit log retrieval. Same format as since.
GET https://api.cloudflare.com/client/v4/accounts/1234567890abcdef/logs/audit?since=2025-03-01T00:00:00Z&before=2025-03-26T23:59:59Z

Example responsejson

{
    "result": [
        {
            "action": "zone.settings.change",
            "actor": {
                "email": "user@example.com",
                "id": "0987654321abcdef"
            },
            "ip": "192.0.2.1",
            "method": "PUT",
            "interface": "dashboard",
            "resources": [
                {
                    "resource_id": "zone123",
                    "resource_type": "zone"
                }
            ],
            "timestamp": "2025-03-15T14:25:37Z"
        }
        // Additional log entries
    ],
    "success": true,
    "errors": [],
    "messages": []
}

For more information refer to the API documentation ↗︎.

Dashboard

To access audit logs in the Cloudflare dashboard, go to Manage Account > Audit Logs.

Go to Audit logs ↗

Note

The Audit Logs v2 is shown by default. You can switch between Audit Logs v2 and v1 as needed.

View actions

By default, the Audit Logs v2 dashboard excludes view actions to reduce noise. This default filter (Action type is not view) applies to both account-level and organization-level audit logs. To include view actions, remove this filter. To show only view actions, set Action type to view.

view actions remain available through the API and Logpush regardless of the dashboard filter.

Account analytics

The account-level Audit Logs v2 dashboard includes analytics for the selected time range. The Actions over time chart separates successful and failed actions. The summary cards show Total actions, Unique actors, Products impacted, and Failure rate.

Select a summary card to view more details:

  • Total actions: Action types and authentication methods
  • Unique actors: Actors with the most actions
  • Products impacted: Products with the most actions
  • Failure rate: Failed actions and their HTTP status codes

To focus the analytics and audit log table on a value, select Filter or Exclude from a detail panel. The analytics, table, filters, and time range remain synchronized.

Note

Account analytics are available for account-level audit logs. They are not available for organization-level audit logs.

Logpush

Note

For customers who already have a Logpush job set up for Audit Logs v1, note that a separate Logpush job must be configured for Audit Logs v2 (dataset). We will communicate the timeline for when Logpush Audit Logs v1 will be deprecated and turned off.

To create a Logpush job:

  1. In the Cloudflare dashboard, go to the Logpush page. Go to Logpush ↗
  2. Select Create a Logpush job.
  3. In Select a destination, select the destination of your choice and add the destination details.
  4. In the datasets section, select the Audit Logs v2 dataset. Audit Logs v2 is an account-based dataset.
  5. Once you are done configuring your logpush job, select Submit.

Resource History

Resource History shows what changed on every configuration modification captured in Audit Logs. For any audit log entry, you can see the sequence of previous changes to the same resource and view a side-by-side diff of what was modified.

Resource History is available in the Cloudflare dashboard and via the Audit Logs API. It uses the audit log entries you already have. There is no additional configuration, no backend recapture, and no changes to how audit logs are generated.

What Resource History gives you

For any audit log entry, Resource History retrieves every other audit log entry for the same resource, ordered chronologically. You can then pick an earlier entry from that history to see exactly which fields changed between the two.

Use Resource History in the dashboard

  1. Go to Manage Account > Audit Logs.
  2. Open any audit log entry.
  3. Select the History tab to see the full history for the resource that entry describes.
  4. In the history view, select any earlier entry to see a side-by-side diff of the fields that changed between it and the current entry.

When Resource History cannot identify the underlying resource (for example, for certain system-initiated events), the dashboard shows an empty state indicating that change history is not available for that entry.

Use Resource History via the API

You can retrieve the change history for any audit log entry using the History endpoint. Given the id of a source audit log entry, the endpoint derives identifying filters from that entry and returns matching audit log entries within a date window you specify.

For account-scoped audit logs, use:

GET https://api.cloudflare.com/client/v4/accounts/{account_id}/logs/audit/{id}/history

For organization-scoped audit logs, use:

GET https://api.cloudflare.com/client/v4/organizations/{organization_id}/logs/audit/{id}/history

The {id} path parameter is the id of the source audit log entry whose resource history you want to retrieve.

Required API token permissions

At least one of the following token permissions is required:

  • Account Settings Read
  • Account Settings Write

The endpoint requires three query parameters:

  • action_time (required): RFC3339 timestamp of the source audit log entry's action time. Provide the action.time value from the audit log identified by {id}. This narrows the source-entry lookup window.
  • since (required): Limits returned results to entries newer than this date. Accepts a date string ( 2024-10-30, interpreted as UTC) or an RFC3339 timestamp.
  • before (required): Limits returned results to entries older than this date. Same format as since.

Optional query parameters:

  • direction: desc (default) or asc.
  • limit: Number of entries to return per page. Default 100.
  • cursor: Pagination cursor from a previous response's result_info.cursor.

<details>

<summary>

Required API token permissions

</summary>

At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:

  • <code>Account Settings Write</code>
  • <code>Account Settings Read</code>

</details>

Get resource change history from an account audit log entry (Version 2)bash

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/logs/audit/$ID/history" \
    --request GET \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

Each entry in result has the same shape as an entry returned by the Audit Logs list endpoint. Results are paginated using the cursor value in result_info.

The result_info.history_status field indicates the quality of resource identification used to build the history: