Skip to Content
Docs

Log drains

Skiff keeps seven days of logs for each project. A log drain also sends them to a service of your choice, so you can keep them longer, search across projects or alert on them.

Set one up

Get an ingest URL from your log service

Most log services have an HTTP ingest endpoint and a token. Better Stack, Axiom and Datadog all do, or use your own endpoint.

Open Settings → Team → Log drain

Team owners can add one drain per team. It covers every project in the team, previews included.

Enter the URL and header

The URL must start with https://. If the service wants a token, put it in a header, such as Authorization with Bearer your-token, or DD-API-KEY for Datadog. The value is never shown again.

Send a test line

Send test posts one line and tells you whether the service accepted it.

What gets sent

Lines go out in batches of up to 500 as a JSON array, within seconds of an app writing them. Each one looks like this:

POST body
[
  {
    "timestamp": "2026-11-02T10:15:30.123456789Z",
    "message": "GET /cart 200 12ms",
    "app": "shop",
    "stream": "out",
    "container": "shop-3fa9c2"
  }
]

stream is out or err. A message longer than 64 KB is cut off at that length.

When the service is down

Skiff only moves on once the service answers with a 2xx. Until then it keeps retrying, up to every five minutes, and the Log drain section shows the error. Sending picks up from the same line afterwards, including after a Skiff restart.

  • Duplicates are possible. If a response gets lost after the service saved a batch, that batch is sent again.
  • An outage longer than seven days loses lines, because that's how long Skiff keeps them.
  • The daily limit applies. Skiff saves up to 50 MB of logs per project per day, and lines past that aren't saved or sent.

Your logs leave your server once a drain is on, including anything your apps print, so keep secrets out of them. A new drain only sends what apps write from then on, not what's already saved.

Drains on a private network

By default, drains can only reach public addresses over HTTPS, so a teammate can't point one at something inside your server's network. If you run your own collector on a private address, set SKIFF_ALLOW_PRIVATE_ENDPOINTS=1 in the panel's environment. That allows private addresses and plain HTTP for every team on the server, and private addresses for offsite backups too.

Metrics

Skiff serves your team's apps in Prometheus's text format at /api/v1/metrics on your dashboard's address, for Prometheus, Grafana Agent, Datadog, Better Stack or anything else that scrapes it. Create an API token under Settings → Integrations and send it as a bearer token. A token limited to some projects sees only those, and not the server's own figures:

prometheus.yml
scrape_configs:
  - job_name: skiff
    scheme: https
    metrics_path: /api/v1/metrics
    authorization:
      credentials: <your API token>
    static_configs:
      - targets: [dash.example.com]

Each app gets:

MetricWhat it is
skiff_app_up1 when it has a running container
skiff_app_crashing1 when it keeps exiting and being restarted
skiff_app_cpu_percentCPU use, in percent of one core
skiff_app_memory_bytes, skiff_app_memory_limit_bytesMemory in use, and its limit
skiff_app_restarts_recentRestarts in the newest sample
skiff_app_replicasHow many copies are meant to run
skiff_app_requests_5m, skiff_app_server_errors_5mRequests, and 5xx responses, in the last five minutes
skiff_app_latency_ms_avg_5mAverage response time in the last five minutes
skiff_app_bytes_in_5m, skiff_app_bytes_out_5mTraffic through the router in the last five minutes
skiff_volume_bytesSize of each of its volumes

The team that set up the server also gets skiff_server_memory_bytes, skiff_server_disk_bytes and their totals.

On this page