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.Account identifier (use
zone_id for zone-scoped jobs)Destination configuration string (e.g., S3 bucket URL with credentials)
Dataset to push (e.g.,
http_requests, firewall_events, spectrum_events)Configuration string specifying fields to include and other options
Whether the job is enabled (default: true)
How often logs are pushed (e.g.,
high, low)Job name
Job identifier
Whether the job is active
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.Destination configuration to validate
Name of the file to upload for validation
Contents to include in the validation file
Whether the ownership is already validated
Validate ownership
Validate ownership of a destination.Destination configuration
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
Job identifier
Whether the job is active
Job name
Dataset being pushed
Destination configuration
Log field and option configuration
Push frequency
Timestamp of last successful push
Timestamp of last error
OutputOptions
Output formatting options for logs.Delimiter between fields
Delimiter between records
Format for timestamps