How-To: Deduplicating Compound Fields

Compound fields contain multiple pieces of information to report and/or search on, contained within a single field. Alternatively, they may be arrays parsed into an array field within events that then must be summarized.

For example, User Agent data in logs contains browser identifiers separated with spaces that define browser and toolkits used to support them:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

The following solutions use a variety of methods to extract and aggregate the information.

Click + next to an example below to get the full details.

Deduplicate Compound Field Data With array:union() and split()