Calls the named function on a field over a set of events. The result is returned in a field named _function for the selected function. This allows having the function name as a dashboard parameter.

ParameterTypeRequiredDefault ValueDescription
asstringoptional[a] _function Name of output field.
fieldstringrequired   Field to extract a number from and calculate function over.
function[b]stringrequired   Function to run.
   Valid Values
   avgThe avg() function
   countThe count() function
   maxThe max() function
   minThe min() function
   rangeThe range() function
   sumThe sum() function

[a] Optional parameters use their default value unless explicitly set.

[b] The parameter name function can be omitted.

Hide omitted argument names for this function

Show omitted argument names for this function

Click + next to an example below to get the full details.

Call Named Function on a Field - Example 1

Calls the named function (avg()) on a field over a set of events

Call Named Function on a Field - Example 2

Calls the named function (count()) on a field over a set of events