Full-Stack Log Export Now Available
Supabase has launched Log Drains on its Pro tier, enabling users to centrally manage logs from their entire infrastructure stack. Rather than keeping logs siloed within Supabase, this feature streams logs from Postgres, API Gateway, Auth, Storage, Edge Functions, and Realtime to external observability platforms of your choice.
What's Included
Log Drains captures logs from every layer:
- Postgres: Query execution, connection events, errors, and replication status
- API Gateway: PostgREST and GraphQL request/response logs
- Auth: Login attempts, token operations, MFA events, and session management
- Storage: File uploads, downloads, transformations, and access patterns
- Edge Functions: Function invocations, execution traces, and error details
- Realtime: WebSocket connections, broadcast events, and presence updates
The feature batches logs intelligently (up to 250 logs per batch or every second) and compresses data with Gzip when supported, reducing bandwidth costs.
Supported Destinations
Five observability platforms are currently supported:
- Sentry: Error tracking with trace-connected logging for correlating database errors with frontend exceptions
- Grafana Loki: Log querying with LogQL and integration with existing Grafana dashboards
- Datadog: Log Management with APM trace correlation and anomaly detection
- AWS S3: Cost-effective long-term archival with Athena query support
- Axiom: High-volume, bursty workload handling without indexing costs
Who Should Use This
Log Drains is designed for growing startups with production traffic, teams already using enterprise observability tools, developers building AI applications with unpredictable workloads, platform teams managing multiple projects, and organizations with compliance requirements for log retention.