stats

This command is experimental

Definition

stats calculates statistics for the incoming search results and creates columnar data ready for a graph display.

Optional arguments for stats:

Examples

Use stats command with aggregation functions.

%dpl
index=example earliest=01/01/2021:08:00:00
| stats avg(_raw)
the basic example of stats

allnum

allnum calculates numerical statistics for each table column if values are numerical. The argument takes boolean value. By default, the value is false.

Currently, allnum does not work in Teragrep. This will be fixed before the community release.

by

by groups results by one or more table columns. You can’t use wildcard with by argument, but instead you need to specify separately all table columns you want results to be grouped by.

If by argument isn’t used, only one table row will be returned.

%dpl
index=crud_small earliest=01/01/2021:08:00:00
| spath path=operation
| spath path=success
| stats count by success operation
example of stats by argument

dedup_splitvals

Work in process

delim

Work in process

partitions

Work in process