npx wrangler tail my-worker --search "DB_TIMEOUT"

Category: Cloudflare

npx wrangler tail my-worker --search "DB_TIMEOUT"

Tail logs matching a text pattern

Shows only log entries whose console.log messages contain DB_TIMEOUT, handy when you know the failing code path. Combine with --status error to see just failed requests, or --method GET to filter by HTTP verb. Quote the pattern so the shell passes it as one argument.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.