Skip to content

owit logs

Query log entries across all configured backends that support the logs signal type.

Terminal window
owit logs [filters] [flags]
Terminal window
# All error logs in the last hour
owit logs level=error --last 1h --limit 100
# Errors from a specific service
owit logs level=error service=payments --last 30m
# Logs containing a specific message
owit logs message contains "connection refused" --last 2h
# Not info level, from production
owit logs level ne info --tag prod --last 1h
# Output as JSON for scripting
owit logs level=error --last 1h --output json | jq '.rows[] | .message'
# Specific backends only
owit logs level=error --backends loki,datadog --last 30m
FieldDescription
timestampRFC 3339 timestamp
_sourceBackend name
serviceService name
levelLog level (error, warn, info, debug)
messageLog line body
trace_idDistributed trace identifier (when present)
span_idSpan identifier (when present)