Skip to content

Logs API

The Logs API allows clients to retrieve recent logs captured by DUMB and served through the API.


Endpoint

GET /logs

Query Parameters

Parameter Type Description
process_name string Required process name (e.g., Riven Backend, Zurg w/ RealDebrid).
cursor int Last byte offset returned by the API (omit for first request).
tail_bytes int Initial bytes to read from the end when no cursor (default: 131072).

Example Request

GET /logs?process_name=Riven%20Backend

This request fetches the latest log chunk for the specified service.


Response Format

Returns a JSON object containing the log chunk and cursor:

{
  "process_name": "Riven Backend",
  "size": 123456,
  "cursor": 123456,
  "chunk": "Apr 12, 2025 10:04:01 - INFO - Riven Backend started\n",
  "reset": true,
  "log": "Apr 12, 2025 10:04:01 - INFO - Riven Backend started\n"
}

Important Notes

  • When reset is true, clients should replace their log buffer with chunk.
  • On incremental requests, pass the returned cursor to get only new bytes.
  • Log content passes through DUMB's sensitive-data redactor before it is returned. This covers credential-bearing HTTP headers, session cookies, common URL/config secrets, email addresses, and Plex account/server identifiers.
  • DUMB returns only complete log lines so a sensitive value split across two polling responses cannot bypass redaction.
  • Prefer logs viewed or downloaded through DUMB when sharing diagnostics. An application's native log file on disk is owned by that application and may not have DUMB's response-time redaction applied.