-
I wanted to ask about this line from the docs:
This is a bit confusing--does "each group" consist of all the fields in a single group_by, or is each field listed in the group_by section an independent group? And if the latter interpretation is correct, how would I accomplish grouping by a combination of fields? Could I combine the desired fields into an array and group by that, or would I need to concatenate them into a string? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @jblang ! The |
Beta Was this translation helpful? Give feedback.
Hi @jblang !
The
group_by
forms a "composite key" by which incoming events are grouped before thereduce
is applied. So if you havegroup_by = ["host", "region"]
, all incoming lines withhost = X and region = Y
will be grouped together.