Logstreem
logstreem tail

logstreem tail

Follow a live stream, filtered, in your terminal.

$logstreem tail

Streams matching events as they are written. Ctrl-C to stop.

Usage
logstreem tail <dataset> [--where <expr>] [--follow]
FlagTypeDescription
<dataset>stringDataset to tail. Required.
--where <expr>stringAn LSQL where expression, without the keyword.
--fields <list>stringComma-separated fields to show. Default: time, level, service, message.
-f, --followbooleanKeep streaming. Default true; --no-follow prints the backlog and exits.
--since <duration>stringStart from this far back before following.
--jsonbooleanOne JSON object per line, for piping.
$ logstreem tail api-gateway-prod --where 'status >= 500'
✓ streaming api-gateway-prod · filter: status >= 500 · 112ms lag

09:41:02.114  error  checkout   503  /v1/checkout   pool exhausted: 40/40 connections
09:41:03.882  error  payments   500  /v1/charge     upstream timeout after 30s
09:41:08.401  error  checkout   503  /v1/checkout   pool exhausted: 40/40 connections
^C
3 events in 8s

No aggregation in a tail

--where only. There is no end of input to summarize over — see live tail. For a rolling count, poll logstreem query on a timer instead.