# Set up Vercel Log drain

Configure a [Vercel Log drain](https://vercel.com/docs/observability/log-drains#configure-a-log-drain) to have greater control over which types of logs will be set to Better Stack.

#### Don't need to customize which logs are sent to Better Stack?

Use simpler automatic [Vercel Better Stack integration](https://betterstack.com/docs/logs/vercel/).

[warning]
**Vercel Pro or Enterprise plan is required**
[/warning]


## Start logging in 3 minutes

### Create a new source

[Create a new HTTP source](https://telemetry.betterstack.com/team/0/sources/new?platform=http ";_blank") in Better Stack Logs.

### Configure Vercel to forward logs

Configure a Log drain to send your logs to Better Stack:

1. Go to [Vercel dashboard](https://vercel.com/) → **Team Settings** → **Log Drains**.
2. Click **Add Log-Drain** button and select **Custom Log Drain**.
3. Choose projects and sources to collect logs from.
4. Select **NDJSON** as your delivery format.
5. Choose your target projects.
6. Get your **source token** and **ingesting host** from [Sources → Configure](https://telemetry.betterstack.com/team/0/sources ";_blank").
7. Enter `https://$INGESTING_HOST` as your **Endpoint**.  
The Vercel's form might instruct you about domain verification, but the step should be optional for Better Stack URLs and you should be able to just click on **Verify** it without doing anything special.
8. Enable **Custom Headers**, and add a header with **Key** `Authorization` and **Value** `Bearer $SOURCE_TOKEN`.
9. Click the **Add Log Drain** button and you're done.  

You should see your logs in [Better Stack → Live tail](https://telemetry.betterstack.com/team/0/tail ";_blank").

[info]
#### Not seeing any logs?

Click the **Test Log Drain** button in Vercel to send a sample log.
You should see the log in [Live tail](https://telemetry.betterstack.com/team/0/tail ";_blank").
[/info]


## Need help?

Please let us know at hello@betterstack.com.  
We're happy to help! 🙏
