Request: group events by type and list the ids in each group
Input:
click
view
click
jq program: group_by(.type) | map({type: .[0].type, ids: map(.id)})
Output:
type: click
ids: 1
3
type: view
ids: 2