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,--leveland--minutesfilters.
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.
Examples
Section titled “Examples”stackblaze logs -n 200stackblaze logs -fstackblaze logs -f -n 50 -a workerstackblaze logs --search -q "timeout" --level error --minutes 180stackblaze logs --search -q panic -o json | jq '.num_hits'JSON output
Section titled “JSON output”- 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 asjq.
Build logs are separate: see stackblaze builds logs.