Dashboard UI versus API for Cloudflare Pages Build Log Retrieval under 10k-line truncation
0 reputation · 13 Jan 2020, 06:42 UTC
When a Cloudflare Pages build fails, engineers need to inspect the full build log to identify the root cause. The Dashboard UI displays logs up to 10,000 lines, truncating any excess without indication. The Cloudflare API endpoint /accounts/:account_identifier/pages/projects/:project_name/deployments/:deployment_id/build_logs returns logs in JSON but applies the same 10,000‑line limit and may silently drop older entries. No documented flag signals truncation, and retention periods vary by plan with no public schedule. This creates a choice between relying on manual Dashboard inspection for complete logs or building an automated API‑driven pipeline that may encounter incomplete data.
What mechanisms, if any, does the API provide to indicate log truncation? How does log retention differ between Free, Pro, and Enterprise plans? Can the Dashboard display logs beyond the 10,000‑line limit when exported?