Sematext is a full-stack observability tool that helps developers keep track of logs, metrics, infrastructure, and website performance.
This guide walks you through setting up a log drain for your Vercel deployments. The log drain will automatically send logs to Sematext where you can debug and troubleshoot issues with full-text search, filtering, tagging, and custom charts for your Vercel logs.
To deploy your project with a Vercel for Git, make sure it has been pushed to a Git repository.
Import the project into Vercel using your Git of choice:
After your project has been imported, all subsequent pushes to branches will generate Preview Deployments, and all changes made to the Production Branch (commonly "main") will result in a Production Deployment.
Select the account or team your deployed project belongs to. You will then be redirected to Sematext Logs.
If you do not have a Sematext account already, click Start Free Trial on Sematext to sign up. Otherwise, you can continue with your existing account.
When logged in to Sematext, select Start Shipping Logs. This will set up a Logs App that acts as container for your data.
The Logs App will show you a token you need to add to the Sematext Logs Vercel Integration.
Open your Sematext Logs integration, select the region in which you created your Sematext Account, and add the token from Step 4. Finally, save the log drain.
By default, you get a set of reports out of the box, with default alert rules to notify you for common errors and timeouts.
These include structured formats for Lambda functions, including errors, timeouts, and cold starts.
When configuring the Sematext Logs Vercel Integration you can configure whether to collect logs from all projects or just a few. With this integration you can configure multiple log drains that point to multiple destinations. This means you can specify which project will send logs to which Sematext Logs App.
To configure multiple log drains, create multiple Logs Apps in Sematext and multiple Log Drains in the Sematext Logs Vercel Integration.
Once added, you'll see an overview of all the Log Drains you have configured.
This guide shows how to set up a Sematext Log Drain for your Vercel deployments. The log drain will automatically send logs to Sematext where you can debug and troubleshoot issues with full-text search, filtering, tagging, and custom charts for your Vercel logs.