Skip to content

reoclo logs

reoclo logs tail [options]

reoclo logs tail streams or fetches recent log lines from a server source. The runner forwards logs from containers, the system journal, the Docker daemon, and itself.

FlagDefaultDescription
--server <idOrName>requiredServer to tail logs from.
--source-type <type>containerOne of container, system, docker_daemon, runner, kernel, auth.
--source-name <name>(varies)Container name (for container) or unit name (for system).
--tail <n>100Initial number of lines to fetch.
--followoffStream new lines as they arrive.
--search <term>noneSubstring filter applied server-side.
--level <level>alldebug, info, warn, error.
--from <ts>recentRFC 3339 timestamp; only return lines after this time.
--to <ts>noneRFC 3339 timestamp; only return lines before this time.

Tail the last 200 lines from a container:

Terminal window
reoclo logs tail --server prod-web-1 --source-type container --source-name api --tail 200

Follow live logs from the systemd journal:

Terminal window
reoclo logs tail --server prod-web-1 --source-type system --source-name reoclo-runner --follow

Search recent logs for a request ID:

Terminal window
reoclo logs tail --server prod-web-1 --source-name api --tail 1000 --search req_abc123

Filter by level for a time window:

Terminal window
reoclo logs tail --server prod-web-1 \
--source-name api --level error \
--from 2026-04-25T00:00:00Z --to 2026-04-25T01:00:00Z

The default is plain text, suitable for grep, less, and tail -f-style consumption. Use -o json for structured output that includes timestamps, source metadata, and parsed levels:

Terminal window
reoclo logs tail --server prod-web-1 --source-name api --tail 50 -o json | jq '.timestamp + " " + .message'
CodeMeaning
0Success
1Network, runner, or upstream log query failure
2Bad arguments (e.g. invalid --from timestamp)
3Authentication failure
5Server or source not found