Logs
moira logs shop-prod # last 200 linesmoira logs shop-prod -f # followmoira logs shop-prod --since 1h --grep 'error|timeout'moira logs nas/legacy-app --tail 50 --timestamps| Flag | Meaning |
|---|---|
-f |
Follow until Ctrl-C or until the container stops |
--tail N |
Lines from the end. Default 200, at most 10000. --tail all needs --since |
--since TIME |
Start time: a duration (15m, 1h) or an RFC 3339 time |
--until TIME |
End time, same formats |
--grep RE |
Keep lines matching a regular expression. Filtering happens on your machine |
--timestamps |
Prefix each line with its Docker timestamp |
--no-color |
Don’t color stderr lines |
-
Logs work for managed and unmanaged containers. A service target with several replicas needs a container name.
-
-fexits0on Ctrl-C. If the server interrupts the stream, the command reports the error and exits1. -
Terminal control characters in log text are escaped (tabs are kept). With
--json, each line is an NDJSON record with the original text:{"host":"edge","t":"2026-11-22T14:00:01.123Z","stream":"stdout","line":"listening on :3000"} -
Containers with a TTY send a raw stream, so every line is reported as
stdout. -
Each host allows 64 concurrent log streams, eight per client.
In the web UI, the logs page has the same controls, a plain-text search instead of a regular expression, and a download button.