Identifies the event with the minimum value in a specified field and returns selected fields from that event.
The resulting event contains only the fields specified in the
include
parameter.
If multiple events share the same minimum value, the
selectFromMin()
function returns one event
randomly.
Hide omitted argument names for this function
Omitted Argument NamesThe argument name for
field
can be omitted; the following forms of this function are equivalent:logscale SyntaxselectFromMin("value",include=["value"])
and:
logscale SyntaxselectFromMin(field="value",include=["value"])
These examples show basic structure only.
selectFromMin()
Examples
Find the first value of a field x (and when that value was from):
selectFromMin(@timestamp, include=[x, @timestamp])
This selects the event with minimum value of @timestamp that also contains the specified field x, and returns an event with fields @timestamp and x only.