Collects fields from multiple events into one event.

ParameterTypeRequiredDefaultDescription
fields[string]true Names of the fields to keep. [a]
limitnumberfalse2000Limit to number of distinct values in collect.
multivalbooleanfalsetrueCollects the resulting value as multivalue (a single field value using separator).
separatorstringfalse\nSeparator used for multiple values.

[a] When you provide only one parameter, the implied parameter is fields

Examples

Collects visitors, each visitor defined as non-active after one minute.

humio
groupby(client_ip, function=session(maxpause=1m, collect([url])))