
Cloudflare brings SQL transformations into Logpush
Cloudflare has made Logpush Transformers generally available, following its Birthday Week 2026 announcements. The feature lets teams filter, redact, and reshape a Logpush dataset with SQL before Cloudflare exports it. Transformers is available on Free, Pro, Business, and Enterprise plans. This matters because security and observability teams commonly export edge logs to a SIEM, analytics system, or object storage, then operate a second service merely to discard health checks, hide sensitive values, or normalize fields.
With a Transformer, that work moves into the Logpush delivery workflow. A SQL WHERE clause removes records before delivery; the SELECT projection decides the outgoing schema. Teams can rename, remove, add, or nest fields. The result remains NDJSON, so this is not a format conversion feature. It is a controlled transformation step for a compatible NDJSON Logpush job using the same dataset as the Transformer.
What administrators can change
Cloudflare’s HTTP-request example shows the practical model. The query converts EdgeStartTimestamp to Unix time, masks the final two IP octets with regexp_replace, uppercases the method, carries forward status and Ray ID, adds a static cloudflare provider label, and nests host and path inside a request object. It also derives an is_server_error Boolean. Internal hosts, /healthz, and /metrics traffic are excluded. That produces a smaller, normalized event before the destination receives it.
The operational benefit is not only cleaner dashboards. Filtering before export can reduce external ingest and storage volume. Redaction before the destination narrows exposure of fields that downstream users do not need. A provider field or shared nested schema can make events from several CDNs easier to query together. Administrators should still regard the SQL as production configuration: validate each selected field against the dataset and make privacy decisions deliberately.
How the export path is engineered
Cloudflare says its pipeline ingests more than one billion events per second, while Bufstream, its Logpush delivery service, delivers more than 110 million Logpush records per second across hundreds of Kubernetes pods. The company rejected an earlier approach that called a customer-defined WebAssembly Transformer in Workers, because adding a network invocation to the export path could introduce timeouts, retries, and latency.
Instead, Transformer execution runs in process within Bufstream. Cloudflare chose Apache DataFusion, a Rust SQL engine built on Apache Arrow. In its benchmark, a prepared Transformer processing a synthetic 5,000-row http_requests batch from one Go goroutine took about three milliseconds, or roughly 1.6 million rows per second. High-volume jobs use per-job transform parallelism. This retains existing batching, scheduling, and destination controls rather than creating a separate transformation tier.
Bufstream turns eligible compressed Cap’n Proto records into typed Arrow RecordBatch values. Arrow IPC crosses the Go-to-Rust FFI boundary through a C ABI and cgo. Go only lends the input buffer for the call; Rust owns the transformed output buffer until Go copies it and releases the allocation. A generated dataset schema, rather than schema inference from an individual batch, validates available fields and types. Saved SQL is stored in R2, retrieved through cache layers, and made into a reusable DataFusion logical plan for a time slice.
Failure behavior and rollout checklist
The fail-closed design deserves attention. If a transform fails, Bufstream does not advance the delivery offset and does not send the untransformed batch. Cloudflare prefers retries over accidentally leaking raw data or violating filtering assumptions. Retries progressively slow down, errors are shown on the job, and a persistently failing job can be disabled. The Transformer Health view reports successful and failed transformations, input and output volume, and duration.
- Choose a Logpush dataset and identify fields required by the destination.
- Open Transformer Studio from the Logpush page, write SQL, and preview it against a sample record.
- Test redaction, filters, field names, and output schema with non-production data.
- Save the Transformer, then attach it only to a matching NDJSON Logpush job.
- Monitor Transformer Health, delivery errors, output volume, and destination behavior after rollout.
- Keep the previous job configuration and query version available for rollback.
Transformers gives administrators a useful control point: reduce irrelevant data, protect selected values, and deliver a schema designed for the consumer without another service to run. Its value depends on disciplined query review and monitoring, particularly because a failed transform intentionally stops raw delivery.
Source: Cloudflare: Filter, reshape, and redact logs before export with Transformers, published October 12, 2026.


