Used to compute multiple aggregate functions over the input.
... | stats(function=[min(), max()])
— equivalent to just [min(),
max()]
. It produces one row of data that contains both min and
max results.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
function | [Aggregate] | false | count(as=_count) | Specifies which aggregate functions to perform on each group. Default is to count(as=_count) the elements. [a] |
Examples
This is equivalent to just count()
:
logscale
stats(function=count())
Find the maximum and minimum:
logscale
[min_response := min(responsetime), max_response := max(responsetime)]