Flags Reference
Named flags are available on all signal type subcommands (owit logs, owit metrics, owit traces, owit profiles) and on owit tail.
--last <duration>
Section titled “--last <duration>”Relative time window. Accepted units: s (seconds), m (minutes), h (hours), d (days).
owit logs level=error --last 30mowit metrics name eq http_requests_total --last 2howit traces duration gt 1s --last 7d--limit <n>
Section titled “--limit <n>”Maximum number of result rows returned.
owit logs level=error --last 1h --limit 100--summarize "<expr>"
Section titled “--summarize "<expr>"”Aggregation expression. Supported functions: count(), avg(<field>), sum(<field>).
owit metrics name eq http_requests_total --summarize "sum(value) by service" --last 1howit logs level=error --summarize "count() by service" --last 24h--backends <name>[,<name>...]
Section titled “--backends <name>[,<name>...]”Target specific backends by name, bypassing the default fan-out scope.
owit logs level=error --backends loki,datadog --last 1h--tag <tag>
Section titled “--tag <tag>”Target all backends with a given tag, bypassing the default fan-out scope.
owit logs level=error --tag prod --last 1howit metrics name eq cpu_usage --tag staging --last 30m--output <format>
Section titled “--output <format>”Output format. Options: table (default), json.
owit logs level=error --last 1h --output json | jq '.rows[] | .message'In json mode the response includes both rows and warnings arrays, enabling scripts to detect partial results programmatically.