Skip to main content

Overview

This guide walks you through setting up a Vercel log drain to send logs into Bronto.

Prerequisites

Before configuring the drain in Vercel, you’ll need a Bronto API key with at least the Ingestion role.

Create a Bronto API Key

  • In Bronto, navigate to Settings → API Keys
  • Click Create API Key
  • Give the key a descriptive name (e.g., vercel-log-drain)
  • Assign at minimum the Ingestion role
  • Copy the generated API key — you’ll need it when configuring the drain headers below

Configure the Log Drain in Vercel

  • Navigate to your team settings in Vercel and go to the Drains section
  • Click Add Drain in the top-right corner
  • Select Logs as the type of data to associate with this drain
  • Configure the log drain name and select which projects should be associated with this drain
All data associated with a single drain configuration will be grouped in the same dataset. We recommend creating multiple drains to separate projects and environments.
  • Select the log sources and environments (e.g., production, preview) you want to include
  • Optionally configure sampling to reduce Vercel drain costs
  • Select Custom Endpoint and set the URL to your Bronto ingestion endpoint:
https://ingestion.<region>.bronto.io
Do not append /v1/logs to the URL. Use the base ingestion URL only. Ensure you replace <region> with your Bronto account’s region (eu or us).
  • Select NDJSON as the format
  • Add the following custom headers:
HeaderValue
x-bronto-api-key<your_api_key>
x-bronto-service-name<dataset_name>
x-bronto-service-namespace<collection_name>
  • Click Test — if everything is configured correctly you should see a 200 status response
If you receive an error, double-check that the endpoint URL does not include /v1/logs, the API key has the Ingestion role assigned, and all three custom headers are present and correctly formatted. If issues persist, contact Bronto Support.
  • Click Create Drain to finish setup

Verify Data Flow

Once the drain is created, logs from the selected projects and environments will begin flowing into Bronto. Navigate to your dataset in Bronto to confirm logs are arriving as expected.