Aggregations
Overview
Syntax
<filters> | stats <function>(<field>) as <alias>level:error | stats count()level:error | stats count() total, count_uniq(workload) serviceslevel:error | stats by (workload) count() errorsCounting Functions
count()
level:error | stats count()count_empty(field)
count_uniq(field)
Numeric Aggregations
avg(field)
sum(field)
min(field) and max(field)
median(field)
quantile(p, field)
sum_len(field)
Value Aggregations
values(field)
uniq_values(field)
Grouping with 'by'
Single Field Grouping
Multiple Field Grouping
Multiple Functions
Post-Aggregation Filtering
Using filter pipe
Implicit Filtering (Without filter keyword)
Time-Series Aggregations
Last updated
