Finds the largest number for the specified field over a set of events. Result is returned in a field named _max.

Function Traits: Aggregate

ParameterTypeRequiredDefaultDescription
asstringoptional_max Name of output field.
field[a]stringrequired  Field to extract a number from.
typestringoptional  description

[a] The argument name field can be omitted.

The parameter name for field can be omitted; the following forms are equivalent:

logscale
max("value")

and:

logscale
max(field="value")

max() Examples

What was the maximum responsetime:

logscale
max(responsetime)