Selects the event with the minimum value in the specified field. Only the included fields will be present in the resulting event. If multiple events have the same minimum value, then it is non-deterministic which event will be selected.
Function Traits: Aggregate
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
field | string | required | The name of the field that is used to find the minimum value. | |
include | Array of strings | required | The names of the fields to include in the generated event. |
selectFromMin()
Examples
Find the first value of a field x (and when that value was from):
logscale
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.