Skip to main content
Sumo Logic

min and max

Use the min and max functions to find the smallest or largest value in a set of values.

max

Extracts the maximum value of the numerical field being evaluated within the time range.

Syntax

  • max(numerical_field)

Rules

  • Creates field named _max

Example

... | max(request_received) group by hour

... | max(request_received) as max_request_received, max(request_sent) as max_request_sent

min

Extracts the minimum value of the numerical field being evaluated within the time range.

Syntax

  • min(numerical_field)

Rules

  • Creates field named _min

Example

... | min(request_received) group by hour

​... | min(request_received) as min_request_received, max(request_sent) as max_request_sent