> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sazabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel log source (send to endpoint)

> Create a Vercel log drain pointed at your Sazabi intake URL to forward deployment logs from serverless functions, edge functions, and static builds.

[All Vercel integration capabilities](https://docs.sazabi.com/catalogs/integrations/vercel)

## About

Stream logs from your Vercel serverless functions, edge functions, and static builds into Sazabi by creating a log drain in the Vercel dashboard. This path covers **logs only**.

Vercel also has a **Connect your account** path where Sazabi sets up and maintains drains for logs, traces, and Web Analytics for the projects you pick. See [Vercel account connection page](https://docs.sazabi.com/catalogs/log-sources/connect-your-account/vercel.md) for that setup.

> [!WARNING]
>
> Vercel Drains require the **Pro** or **Enterprise** plan. Hobby and Pro Trial teams cannot create drains. Sazabi does not parse NDJSON on this endpoint — confirm you set the delivery format to **JSON** when creating the drain.

## Prerequisites

* A Vercel team on the **Pro** or **Enterprise** plan.
* Your Sazabi intake URL (shown above).

## Set up in the dashboard

**Step 1**

### Open Drains

In your [Vercel dashboard](https://vercel.com/dashboard), go to **Team Settings > Drains** and create a new drain.

**Step 2**

### Choose log type

Choose **Logs** as the data to deliver. This self-serve path covers logs only — traces and Web Analytics events are available on the connect-your-account path.

**Step 3**

### Set the endpoint

Paste your Sazabi intake URL (shown above) into the drain's endpoint field.

**Step 4**

### Set delivery options

* **Delivery format**: JSON (Sazabi does not parse NDJSON on this endpoint).
* **Projects, environments, and log sources**: pick the projects, environments, and log sources to send. Sazabi accepts every Vercel log source: Static, Lambda, Edge, Build, External, Firewall, and Redirect.

**Step 5**

### Save

Save the drain. Vercel begins delivering logs immediately.

## Set up with the CLI

You can also register the Vercel log source with the [Sazabi CLI](https://docs.sazabi.com/reference/cli.md) (installed and authenticated — see [CLI reference](https://docs.sazabi.com/reference/cli/log-sources.md)).

Registering the source mints the same intake URL the dashboard shows above (the public key is embedded in its hostname):

```bash theme={"system"}
sazabi log-sources create vercel --mode manual
```

The command prints the intake URL for the new source — copy the whole URL and point your sender at it using the configuration shown above. Run `sazabi log-sources get <log-source-id>` at any time to reprint the endpoint, or `sazabi log-sources list` to see every log source in the project.

## Verify signatures

Vercel signs every drain delivery with the drain's secret. When Sazabi checks the signature, a leaked intake URL alone can't add events. Deliveries that fail the check are rejected with `401` and are neither stored nor billed.

* **Drains Sazabi creates when you connect your Vercel account:** Sazabi sets the secret itself. For the first seven days it only counts the checks and rejects nothing. After seven clean days, it starts rejecting deliveries that fail. If a delivery fails the check, the stream shows **Add your Vercel secret** in [**Settings > Log streams**](https://app.sazabi.com/settings/log-source-providers): paste the signature secret your Vercel drain signs with, and the seven days start again.
* **A drain you created yourself:** open the log source in **Settings > Log sources**, switch on **Verify signatures** and copy the generated secret into the drain.

| Sender | Signature header | Secret | Setup |
| - | - | - | - |
| Vercel | `x-vercel-signature` | Sazabi generates it; you paste it into Vercel | In Vercel, open the drain's settings (Edit in the Drains list) and paste the secret Sazabi generated as its signature secret. |

Rotation, rejection reasons and the Intake page figures work as described in [Webhook Events](https://docs.sazabi.com/catalogs/log-sources/send-to-an-endpoint/webhook-events.md#verify-signatures).

## Verify

Push a deployment or hit an application route to generate log activity. Open the [Intake page](https://docs.sazabi.com/send-data/intake.md) in the Sazabi dashboard and confirm logs from the **Vercel** source appear. Logs typically appear within a few minutes.

## Troubleshooting

**Drain option not visible** — Drains appear only on Pro and Enterprise plans. Hobby and Pro Trial teams see no Drains section in **Team Settings**.

**Logs arrive malformed** — Confirm you selected **JSON** as the delivery format. Sazabi does not parse NDJSON on this endpoint; NDJSON payloads will not be processed correctly.

**No logs after creating the drain** — Verify the endpoint URL in the drain settings matches your Sazabi intake URL exactly. Also confirm the drain is set to deliver at least one log source type and at least one environment.

**Traces or Web Analytics events are absent** — This self-serve path covers logs only. Connect your Vercel account for Sazabi to create traces and Web Analytics drains.

## Further reading

> [card] [Intake](https://docs.sazabi.com/send-data/intake.md)
>
> See per-source ingestion volume and health in the Intake page.

> [card] [Vercel (connect your account)](https://docs.sazabi.com/catalogs/log-sources/connect-your-account/vercel.md)
>
> Let Sazabi manage drains for logs, traces, and Web Analytics.

> [card] [Log sources](https://docs.sazabi.com/catalogs/integrations.md#log-sources)
>
> Browse the full log source catalog.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.