Overview
Cloudflare Logpush sends logs of HTTP requests, Spectrum events, firewall events, and more to cloud storage destinations. Use the Logpush API to manage jobs, validate destinations, and configure log fields.Initialize the client
Jobs
Manage Logpush jobs.Create a job
Create a new Logpush job.string
required
Account identifier (use
zone_id for zone-scoped jobs)string
required
Destination configuration string (e.g., S3 bucket URL with credentials)
string
required
Dataset to push (e.g.,
http_requests, firewall_events, spectrum_events)string
Configuration string specifying fields to include and other options
boolean
Whether the job is enabled (default: true)
string
How often logs are pushed (e.g.,
high, low)string
Job name
number
Job identifier
boolean
Whether the job is active
string
Destination configuration
Update a job
Update an existing Logpush job.List jobs
List all Logpush jobs.Get a job
Get details of a specific Logpush job.Delete a job
Delete a Logpush job.Ownership
Manage ownership validation for Logpush destinations.Create ownership challenge
Generate an ownership challenge for a destination.string
required
Destination configuration to validate
string
Name of the file to upload for validation
string
Contents to include in the validation file
boolean
Whether the ownership is already validated
Validate ownership
Validate ownership of a destination.string
required
Destination configuration
string
required
Ownership challenge token
Validate
Validate Logpush destinations and origin configurations.Validate destination
Check if a destination configuration is valid.Check if destination exists
Check if a destination exists and is accessible.Validate origin
Validate origin configuration for Logpush.Datasets
Get information about available datasets.Edge
Manage instant Logpush jobs for edge locations.Create instant job
Get instant job
Types
LogpushJob
number
Job identifier
boolean
Whether the job is active
string
Job name
string
Dataset being pushed
string
Destination configuration
string
Log field and option configuration
string
Push frequency
string
Timestamp of last successful push
string
Timestamp of last error
OutputOptions
Output formatting options for logs.string
Delimiter between fields
string
Delimiter between records
string
Format for timestamps