Cloudflare Logs
Stream logs from Cloudflare Workers into Gonzo for real-time analysis, filtering, and AI-powered insights.
Quick Start
wrangler tail --format json \
| jq --unbuffered -c '
. as $inv |
(.logs[] | {
timestamp: .timestamp,
level: .level,
message: (.message | map(if type == "string" then . else tostring end) | join(" ")),
script: $inv.scriptName,
outcome: $inv.outcome,
url: $inv.event.request.url,
method: $inv.event.request.method,
status: ($inv.event.response.status // null),
colo: $inv.event.request.cf.colo
}),
(.exceptions[]? | {
timestamp: .timestamp,
level: "error",
message: (.name + ": " + .message),
stack: .stack,
script: $inv.scriptName,
outcome: $inv.outcome,
url: $inv.event.request.url,
method: $inv.event.request.method,
status: ($inv.event.response.status // null)
})
' \
| gonzoPrerequisites
What's Visible
Component
In tail?
Notes
Usage Patterns
Pages Functions
Rate Limits and Sampling
Structured Logging Tips
Troubleshooting
Symptom
Cause & fix
Last updated