Docs

Logs and log drains

Request, function, database and audit logs in the console, and log drains that forward request and function logs to Datadog, Grafana Loki or your own HTTPS endpoint.

Updated Oct 21, 2026

#Where to look

LogConsoleWhat it shows
API requestsAPI logsEvery request to your project: method, path, status, latency, service.
Edge functionsEdge logs and each function's logsEach run: status, duration, error, output preview.
PostgresPostgres logsYour database's own log: errors, slow statements, connections.
Audit trailAudit TrailSign-ins, key and policy changes, deploys, migrations — tamper-evident.
sov logs requests
sov logs api

#Metrics and the live request log

Observability shows, for the chosen time range, requests, 4xx/5xx errors and error rate, response time (average, p50, p95, p99) and data transferred — for the whole project and per product (Data API, Auth, Storage, Edge Functions, Realtime). API Gateway breaks it down per service, so a slow or failing service stands out.

Observability → Request logs lists your latest requests (method, path, status, service, duration) and updates live: the last 1,000 on paid plans, the last 200 on Free. Only the path is stored, never the query string, so tokens in URLs don't end up in logs. A refused or failed request has a Trace link: it opens Request traces: why did this request fail? at that request, with the check or service that said no.

#Latency per route

Observability → Routes ranks your API's routes by traffic with their p50, p95 and p99 response time and their 4xx and 5xx counts. A route is the method and the path with ids collapsed — GET /rest/v1/orders, POST /api/v1/data/doc/_query/users/:id/orders, GET /api/v1/store/objects/avatars/:path — so a project has a few dozen routes, not one per row. Pick All environments, Production or one staging environment; click a route for its requests and p95 over time. Routes with a p95 over a second or 1 % server errors are highlighted.

  • Only your app's traffic counts (API keys and app users); people clicking around the console don't.
  • Latency is measured at the gateway, from the request arriving to the last byte of the answer.
  • Route data is kept in 15-minute points for a day and hourly points for up to 7 days (never longer than the plan's metrics history). Up to 40 routes per 15 minutes are tracked; the rest are summed as other.
sov metrics routes --hours 168
sov metrics routes --route "GET /rest/v1/orders" --json

To be told when a route gets slow or starts failing, add an alert: Alerts: latency, errors, function failures and connections.

FreeProUltraTeamEnterprise
Metrics history1 day7 days14 days28 days90 days
Metrics resolution15-minute averages1 minute1 minute1 minute1 minute
Request log history30 minutes7 days14 days28 days90 days
Requests kept in the log2001,0001,0001,0001,000

#Log drains

A log drain forwards your project's logs to a tool you already use: every API request and every function run. Each line has a source of request or function. New lines are sent in batches within about 10 seconds, oldest first, and never twice. Add drains under Observability → Log drains.

DestinationYou provideNotes
HTTPS endpointURL, optional auth headerBody { "project_id", "drain_id", "logs": [...] }, signed with X-Sovaria-Signature: sha256=<hex>
DatadogSite and API keyFunction runs arrive as service sovaria-functions
Grafana LokiURL, user and tokenOne stream per source (log_type)

Destinations must be public HTTPS hosts. After repeated failed deliveries (about 20 minutes) a drain pauses itself; fix the destination and resume it. Send test delivers one sample line.

import crypto from 'node:crypto'

export function verify(rawBody: Buffer, header: string | undefined, secret: string): boolean {
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex')
  return !!header && header.length === expected.length && crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected))
}

#Plans

FreeProUltraTeamEnterprise
Log drains per project—131050

Every limit is in Plan limits.

#Coming from Firebase or Supabase?

PlatformWhat this is called there
FirebaseCloud Logging for Firebase
SupabaseSupabase Logs Explorer and Log Drains
SovariaLogs and log drains

Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.