create_logpush_job
Create a Logpush job to stream Cloudflare datasets (e.g., HTTP requests) to a destination like S3 or R2. Use confirm:true to execute; otherwise returns a preview.
Instructions
Create a Logpush job streaming a dataset to a destination. Requires confirm:true (human-approval gate); without it returns a preview only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | No | The Cloudflare zone ID (32-char hex). Get it from list_zones. | |
| account_id | No | Create an account-scoped job (used when zone_id is omitted). | |
| name | Yes | Job name. | |
| dataset | Yes | Dataset, e.g. http_requests, firewall_events, dns_logs. | |
| destination_conf | Yes | Destination URI, e.g. s3://bucket/path?region=us-east-1 or r2://... or an HTTPS endpoint. | |
| enabled | No | Whether the job starts enabled. Default true. | |
| logpull_options | No | Optional fields/timestamp options, e.g. 'fields=...×tamps=rfc3339'. | |
| confirm | No | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve before this is set to true. |