Cloudflare

Download 2
Last updated Aug 4, 2026

cloudflare-audit-logs-v2

Get audit logs from Cloudflare account audit logs v2 API.

Syntax

cloudflare-audit-logs-v2 [profile=PROFILE] [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] [order=ORDER] [actor-email=ACTOR-EMAIL] [actor-ip=ACTOR-IP] [action-type=ACTION-TYPE] [resource-type=RESOURCE-TYPE]

Options

profile=PROFILE
Optional. Connect profile code of Cloudflare
duration=NUM{mon|w|d|h|m|s}
Optional. Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Optional. Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
Optional. End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
order=ORDER
Optional. asc or desc. (default desc)
actor-email=ACTOR-EMAIL
Optional. Search logs matching actor's email.
actor-ip=ACTOR-IP
Optional. Search logs matching actor's ip.
action-type=ACTION-TYPE
Optional. Search logs matching action's type (create/delete/view/update).
resource-type=RESOURCE-TYPE
Optional. Search logs matching resource's type.

Output Fields

FieldTypeNameDescription
profileStringConnect profileCloudflare connect profile code
_timeDateEvent TimeTime when the event occurred
idStringIDUnique identifier for the audit log entry
action_typeStringAction TypeType of action performed
action_resultBoolAction ResultWhether the action succeeded
action_infoStringAction InfoDescription of the action
actor_idStringActor IDIdentifier of the actor
actor_emailStringActor EmailEmail address of the actor
actor_ipIP addressActor IPIP address of the actor
actor_typeStringActor TypeType of the actor
actor_contextStringActor ContextAuthentication context of the actor
actor_token_idStringActor Token IDAPI token identifier used by the actor
actor_token_nameStringActor Token NameAPI token name used by the actor
resource_idStringResource IDIdentifier of the affected resource
resource_typeStringResource TypeType of the affected resource
resource_productStringResource ProductProduct of the affected resource
resource_scopeStringResource ScopeScope of the affected resource
raw_methodStringHTTP MethodHTTP method of the API request
raw_uriStringURIURI of the API request
raw_status_codeIntegerStatus CodeHTTP status code of the API response
raw_cf_ray_idStringCF Ray IDCloudflare Ray ID of the request
user_agentStringUser AgentUser agent of the request
zone_idStringZone IDIdentifier of the zone
zone_nameStringZone NameName of the zone
account_idStringAccount IDIdentifier of the account
account_nameStringAccount NameName of the account