min()

Returns the minimum value of the given expression. It ignores any expression that is null.

Syntax

min(NUM_EXPR, ...)
Required Parameters
NUMBER, ...
Expression list that returns int, short, long, float, or double

Usage

json "{}" | eval min=min(1) => 1

json "{}" | eval min=min(1, 2) => 1

json "{}" | eval min=min(1, 2, null) => 1

json "{}" | eval min=min(null) => null