Attention
You must enable the SelectFromExtremaFunctions
feature
flag to use this function. See
Enabling/Disabling Features for more information.
Selects the minimum value of the specified field, and then generates an event with the specified fields from the matching event.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
field | string | true | The names of the field to use to calculate minimum value. | |
include | [string] | true | The names of the fields to include in the generated event. |
Examples
Find the first value of a field x (and when that value was from)?
Try
humio
selectFromMin(@timestamp, include=[x, @timestamp])
This selects the minimum value of @timestamp
that
contains an event with the specified field and the corresponding
timestamp value.