Vercel logs

Vercel logs

Capture Vercel deployment logs as PostHog events

Configuration

OptionDescription
Authorization header value
Type: string
Required: False

If set, the incoming Authorization header must match this value exactly. e.g. "Bearer SECRET_TOKEN"

Max message length
Type: number
Required: False

Truncate log messages longer than this (default: 262144 bytes)

Log payloads
Type: boolean
Required: False

Logs the incoming request for debugging

Using our REST API you can create this source_webhook like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "source_webhook",
"name": "Vercel logs",
"inputs": {},
"enabled": true,
"template_id": "template-source-vercel-log-drain"
}'

Community questions

Questions about this page? or post a community question.