--- slug: /search/search-query-language/group-aggregate-operators title: Group or Aggregate Operators description: Understand and use group and aggregate operators in Sumo Logic to summarize, transform, and visualize data from your logs and metrics. canonical: https://www.sumologic.com/help/docs/search/search-query-language/group-aggregate-operators/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; In this section, we'll introduce the following concepts:
Learn how aggregating (group-by) functions evaluate messages and place them into groups.
Calculates the avg value of a numerical field being evaluated.
Use with a group operator and field name.
Return the first or last result relative to the sort order.
Calculates the median value for a particular field.
Use these functions to find the smallest or largest value in a set of values.
Select the most or least recent value within a group.
Finds the specified percentiles of a given field.
Finds the percentile of a given field.
Finds the standard deviation for numerical values within a time range.
Adds values of a numerical field being evaluated within a time range.
Provides all the distinct values of a field.