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:
Open the Vercel Dashboard
Navigate to Team Settings > Log Drains.- Select Sources
Choose the relevant sources from which you want to collect logs. Choose Delivery Format
Set the delivery format toJSON
.Select Target Projects
Choose the specific projects for which you want to stream logs.Set the Endpoint
Use the following endpoint format:https://ingest.<REGION>.signoz.cloud:443/logs/json
Set the
<REGION>
to match your SigNoz Cloud regionAdd 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.
- 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. 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.