Aggregate Functions for chart/stats

The chart/stats operators offer a set of Aggregate functions that can be used over a group of events. The previous tables display the number of events that are a match in some specific grouping. This counting operation is named as the count function for chart and stats operator.

All of the examples below use data from a Simplified Events Table, described in the chart/stats topic.

Row summary from the Simplified Events Table, showing the Names in every group organized buy Category Outcome
Category Outcome Count of Names
/Failure 2
/Interrupt 2
/Success 1
Row summary from the Simplified Events Table of the amount of Names in every group organized by Category Outcome
Category Outcomes Count of Distinct Names
/Failure 2
/Interrupt 2
/Success 1
Row summary from the Simplified Events Table showing the sum of Bytes in field for every group organized by Category Outcome
Category Outcome Sum of Bytes in
/Failure 3022 + 3009 = 6031
/Interrupt 3404 + 3063 + 3409 + 9876
/Success 3216
Row summary from the Simplified Events Table of the average number of Bytes in field for every group organized by Category Outcome
Category Outcome Average Bytes in
/Failure 3015.5
/Interrupt 3292
/Success 3216
Row summary from the Simplified Events Table showing the standard deviation of Bytes in field for every group organized by Category Outcome
Category Outcome Stdev of Bytes in
/Failure 6.5
/Interrupt 161.94
/Success 0
Row summary from the Simplified Events Table of the minimum value of Bytes in field for every group organized by Category Outcome
Category Outcome Min of Bytes in
/Failure 3009
/Interrupt 3063
/Success 3216
Row summary from the Simplified Events Table showing the maximum value of the Bytes in field for every group organized by Category Outcome.
Category Outcome Min Bytes in
/Failure 3022
/Interrupt 3409
/Success 2316
Row summary from the Simplified Events Table showing the maximum value of Normalized event time for every group organized by Category Outcome
Category Outcome Max of Normalized Event Time
/Failure 12/29/22 11:34:15.635
/Interrupt 12/29/22 11:32:54.064
/Success 12/29/22 12:34:15.635

Row summary from the Simplified Events Table showing the minimum value of Normalized event time for every group organized by Category Outcome.

Category Outcome Min of Normalized Event Time
/Failure 12/29/22 10:34:15.635
/Interrupt 12/29/22 12:34:15.635
/Success 11/04/22 10:10:02.000

 

For additional information about the construction and usage of the chart/stats operators, see the chart/stats overview, Syntax and Structure for chart/stats, and Cheat Sheet for chart/stats.

For information about other operators, functions, and syntax requirements, see Use an Operator in the Query.