Skip to content

stackblaze logs

Prints the linked app’s logs, oldest first.

  • Default: recent lines from the running containers. If there are none (for example after pods were replaced), it falls back to the log store for the last --minutes (60 by default).
  • -f, --follow: streams new lines until you press Ctrl+C. Reconnects after network drops.
  • --search: queries the durable log store, with --query, --level and --minutes filters.
stackblaze logs [options]
Flag Description
-n, --limit <n> Show the newest n lines. With --follow, print the last n lines first. With --search, the default is 100
-f, --follow Stream live logs
--search Search the log store instead of the live buffer
-q, --query <text> Full-text query (--search)
--level <level> Log level filter (--search)
--minutes <n> Look-back window in minutes (default 60)
--container <name> Container (default kuberoapp-web)

Also accepts the scope and output flags: -p, --pipeline, --phase, -a, --app, --token, --api-url, -o, --output, --json.

--follow and --search cannot be combined.

Terminal window
stackblaze logs -n 200
stackblaze logs -f
stackblaze logs -f -n 50 -a worker
stackblaze logs --search -q "timeout" --level error --minutes 180
stackblaze logs --search -q panic -o json | jq '.num_hits'
  • Default mode: one document, {"container": …, "logs": [ … ]}.
  • --search: one document, {"hits": [ … ], "num_hits": n}.
  • --follow: one JSON object per log line, written as each line arrives. Read it with a streaming parser such as jq.

Build logs are separate: see stackblaze builds logs.