Counts the elements (the functions in the array) in the
queryParserMetrics.function[] array
field.
Event Result set.
Summary and Results
The returned value is the number of functions found in the array, and it
will be output into the
_numberOfFunctions field, which
is set by the argument
as.
Given an event that has the
queryParserMetrics.function[]
array fields (a list of the functions used in a query):
queryParserMetrics.function[0]="head"
queryParserMetrics.function[1]="bucket"
queryParserMetrics.functions[2]="groupBy"
Filters only events that has head as the
value of
queryParserMetrics.function[]
array field, and then gets the number of functions listed in the
queryParserMetrics.function[] array for
that event.
Step-by-Step
Starting with the source repository events.
logscale
queryParserMetrics.function[0]="head"
Filters events that has head as the
value of
queryParserMetrics.function[0]
array field.
Counts the elements (the functions used) in all the
queryParserMetrics.function[] arrays for
that event.
Event Result set.
Summary and Results
You will get an array of all the functions used in just one event where
head is the first function used. The
result will be output into the
_numberOfFunctions field set by
the argument as.