Cloudflare Logpush
Logpush delivers Cloudflare's logs in gzipped batches to an HTTP endpoint. Flowhawk reads them directly: each HTTP request becomes a line on its host, and each Worker invocation's console logs and exceptions become lines on the Worker's script.
What you get
- Cloudflare logs in Logs, next to your traces and metrics, searchable with the same query language (
severity>=WARN service=checkout "timeout"), grouped into patterns or followed live. - A log line that names a request path joins the business flow of that route, so a failing checkout shows its platform logs on the checkout flow's page.
- A line that carries a trace id opens its trace.
- Alert on any search with Alert on this, and let the agent read these logs when it investigates an incident.
Set it up
First create an ingest key: in the app, open Settings > API keys and pick Services. In the examples below, KEY stands for that key. Keep it out of your repository, like any other secret.
- In the Cloudflare dashboard, open Analytics & Logs > Logpush > Create a Logpush job and pick the destination HTTP.
- Use this address. Logpush turns each
header_parameter into a request header, so the key travels as a header, not as part of the URL Flowhawk sees. URL-encode the key if it has characters other than letters and digits.https://api.flowhawk.dev/v1/logs/cloudflare?header_Authorization=Bearer%20KEY - Pick the dataset: HTTP requests for your zones, or Workers trace events for your Workers. Make one job for each.
Cloudflare sends a test batch when you save the job. Flowhawk answers it and stores nothing.
The same steps, with your workspace's address filled in, are in the app under Settings > Integrations > Log drains.
What arrives
| Dataset | In Flowhawk |
|---|---|
| HTTP requests | One line per request, GET /checkout 502, on the service named after the host. 5xx are errors and 4xx warnings. The path joins the request to its flow |
| Workers trace events | One line per console log and per exception, on the service named after the script. A failed invocation that logged nothing still gets a line with its outcome |
| Other datasets | Firewall events, DNS and Zero Trust logs are read as plain JSON |
Common questions
Which Cloudflare plans have Logpush?
Cloudflare decides which datasets each plan can push. Check Logpush in your Cloudflare plan before you start.
Can I send traces from Workers?
Workers can export OpenTelemetry to any OTLP endpoint. Point it at https://ingest.flowhawk.dev with the header Authorization: Bearer KEY (Sending data).