Stream Logs from Vercel to SigNoz

If you are running your applications on Vercel, you can stream logs from Vercel to SigNoz using log drains.

Prerequisite

  • Vercel Pro or Enterprise accounts

Setup

Follow the steps below to send your logs from Vercel to SigNoz Cloud:

  1. Open the Vercel Dashboard
    Navigate to Team Settings > Log Drains.

  2. Select Sources
    Choose the relevant sources from which you want to collect logs.
    Vercel sources
  3. Choose Delivery Format
    Set the delivery format to JSON.

  4. Select Target Projects
    Choose the specific projects for which you want to stream logs.

  5. Set the Endpoint
    Use the following endpoint format:

    https://ingest.<REGION>.signoz.cloud:443/logs/json

    Set the <REGION> to match your SigNoz Cloud region

  6. Add Custom Headers
    Enable Custom Headers and add the following headers:

  • signoz-access-token: Use the token from your SigNoz Cloud instance for data authentication.
  • x-vercel-verify: The value of this header will be provided in the Vercel UI.
Vercel Custom Headers
  1. Test the Log Drain
    Click on Test Log Drain. If successful, you will start to see sample logs on the SigNoz UI.
    Note: It might take some time for the logs to appear.
    Sample Logs
  2. Verify and Add the Log Drain
    After successful testing, click Verify and then Add Log Drain in your Vercel dashboard.

Your Vercel logs will now be streamed to SigNoz Cloud.

Was this page helpful?