Skip to main content

stats

Class: core · Streaming: accumulating

Grouped aggregation. count() requires parens; conditional aggregates via count(where p) / sum(x, where p).

Signature​

| stats <aggs> [by=<field_list>]

Positional Arguments​

NameTypeRequiredDescription
aggsagg_listYes-

Options​

NameTypeDefaultDescription
byfield_list-group keys; bin(_time, dur) allowed and emits as _time

Examples​

stats count(), avg(dur) by service
stats count(where status >= 500) as errors, count() as total by service

Generated from the LynxFlow registry. See RFC-002 for the full language specification.