Function: Find Min/Max Value

Overview

Finds Minimum or Maximum Value in Row

Description

This function allows you to find the minimum or maximum value in all events for the specified field. The function outputs a search result in the format [ { : , type: <'min'/'max'> } ]. This function does not pass the original event to the output, so it is convenient to place it in a separate processing chain.
In the parameters, you need to specify which field to search for, and the type of search-the minimum or maximum value.

Function Schema

Examples

We will submit a list of students with their age as input to the function. We need to find the age of the oldest student. To do this, set Field Name = 'age' and Search Type = 'maximum' in the function parameters. The result will be an event containing the 'age' field, the maximum value for all events, and the search type.