Vercel
Vercel
A Log Drain that forwards build and runtime logs from a project.
Vercel Log Drains POST NDJSON to any HTTPS endpoint. Point one at your ingest URL.
cURL
curl -X POST "https://api.vercel.com/v2/integrations/log-drains" \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "logstreem",
"type": "json",
"url": "https://api.logstreem.com/v1/ingest/vercel-prod",
"headers": { "Authorization": "Bearer '"$LOGSTREEM_TOKEN"'" },
"projectIds": ["prj_abc123"],
"sources": ["lambda", "static", "edge", "build"],
"deliveryFormat": "ndjson"
}'Useful fields
| Field | Meaning |
|---|---|
source | lambda, edge, static or build |
deploymentId | Which deployment produced it — the join key for a regression |
requestId | One request across edge and lambda |
statusCode | HTTP status |
proxy.region | The edge region that served it |
Errors by deployment after a release
read top to bottom
1['vercel-prod']2| where _time > ago(2h) and statusCode >= 5003| summarize errors = count() by deploymentId, ['proxy.region']4| order by errors desc