Stay organized with collections
Save and categorize content based on your preferences.
array_distinct
The array_distinct function returns all distinct values in the form of a
list. The deduplication to produce a distinct list is applied before
truncation.
The maximum number of elements returned depends on where the query runs:
Search: Truncates the list to a maximum of 1,000 random elements.
Dashboards and Rules: Truncates the list to a maximum of 25 random
elements.
The following example filters out events that lack a security result description. It uses the any keyword on the repeated field to preserve all array indexes during outcome aggregation:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-09-13 UTC."],[],[]]