3 min read

Working with Log Drains

Log drains collect all of your logs using a service specializing in storing app logs. Learn how to use them with Vercel Integrations here.
Table of Contents

Log Drains are available on Pro and Enterprise plans

Inspecting logs for the Build Step, Runtime, and Edge Network traffic of deployments is important in understanding the behavior of your application.

Log drains let you debug, monitor, and analyze logs from your applications. When a new log line is created, the logs can be forwarded to archival, search, and alerting services through HTTPS, HTTP, TLS, and TCP.

Log drains on Vercel enable you to:

  • Have persisted storage of logs
  • Have a large volume of log storage
  • Provide the ability to create alerts based on logging patterns
  • Generate metrics and graphs from logs data

You can add log drains in two ways:

Log drains are available to all users on the Pro and Enterprise plans. If you are on the Hobby or Pro Trial plan, you can upgrade to the Pro plan to use log drains.

Those on the Hobby plan, and using log drains before 23rd May 2024, can continue to use their current log drains through the integration for free, forever. However, they will not be able to create new log drains.

Existing Pro plan users have a three month grace period from the end of the billing cycle that runs through May 25th 2024, before being charged for log drains usage. After this period, log drains usage will be billed based on the pricing table below.

Managed Infrastructure pricing

Log drains collect all of your logs using a service specializing in storing app logs.

N/AN/A$10 per 5 GB

To learn more about Managed Infrastructure on the Pro plan, and how to understand your invoices, see understanding my invoice.

See Optimizing log drains for information on how to manage costs associated with log drains.

  1. From your team's dashboard, select the Settings tab
  2. Select Log Drains from the list
  3. In available log drains, select the context menu and click Disable to disable a log drain
  4. In available log drains, select the context menu and click Remove to remove a log drain

You can also integrate the log drains with third-party logging services. The Integrations Marketplace has numerous logging services for you to integrate.

To do so, you can:

  • Install the desired integration from the Integrations Marketplace
  • Follow the configuration steps provided and choose a project to connect with the service
  • Watch your logs appear on the selected service

You can easily collect and forward your deployment logs to a third-party logging provider and act accordingly with log drains.

Once integrated, you can view and manage all these logging services also under the Active Log Drains list. You can also find the log drains integration in your list of integrations.

Occasionally your log drain endpoints could return an error. If more than 80% of log drain deliveries return errored status and the number of errored deliveries exceed 50 for the past hour, we will send a notification email and indicate the error status on your Log Drain page.

Errored Log Drain will show a warning status.
Errored Log Drain will show a warning status.

For more information on log drains and how to use them, check out the following resources:

Last updated on June 22, 2024