Collects fields from multiple events into one event.

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

Examples

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

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