Logstreem
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

FieldMeaning
sourcelambda, edge, static or build
deploymentIdWhich deployment produced it — the join key for a regression
requestIdOne request across edge and lambda
statusCodeHTTP status
proxy.regionThe 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 >= 500
3| summarize errors = count() by deploymentId, ['proxy.region']
4| order by errors desc