create_log_drain
Create a log drain to ship logs from specified sources (build, edge, lambda, static, external) to your HTTPS endpoint with configurable delivery format (json, ndjson, syslog).
Instructions
Create a configurable log drain that ships logs to your endpoint. Choose the sources (build, edge, lambda, static, external) and delivery format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Drain name. | |
| url | Yes | HTTPS endpoint to deliver logs to. | |
| deliveryFormat | No | ||
| sources | Yes | Which log sources to drain. | |
| projectIds | No | Limit to specific projects. | |
| headers | No | Custom headers to send. | |
| secret | No | Signing secret for verifying delivery. | |
| teamId | No | Team ID to scope the request. Falls back to VERCEL_TEAM_ID when omitted. | |
| slug | No | Team slug to scope the request (alternative to teamId). |