---
title: "Supabase"
description: "Learn how to set up Supabase Log Drains to forward logs to Sentry."
url: https://docs.sentry.io/product/drains/supabase/
---

# Supabase Log Drains

The [Sentry Supabase Log drain](https://supabase.com/docs/guides/telemetry/log-drains#sentry) will forward all logs from your Supabase stack to Sentry.

Supabase Log Drains are only available on the Supabase Team and Enterprise Plans

## [Prerequisites](https://docs.sentry.io/product/drains/supabase.md#prerequisites)

Before you begin, ensure you have:

* A Supabase project that you want to monitor
* A Sentry project you want to send data to

## [Adding a Log Drain](https://docs.sentry.io/product/drains/supabase.md#adding-a-log-drain)

To set up the Sentry log drain, follow these steps:

1. Grab your DSN from your [Sentry project settings](https://docs.sentry.io/concepts/key-terms/dsn-explainer.md#where-to-find-your-data-source-name-dsn).

```bash
___DSN___
```

2. Create a Sentry log drain in the [Supabase dashboard](https://supabase.com/dashboard/project/_/settings/log-drains). Make sure you provide the DSN you grabbed in the previous step.

Then you should get logs in your Sentry project. All fields from the log event are attached as attributes to the Sentry log, which can be used for filtering and grouping in the Sentry UI.
