For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR 3.x

arraydistinct

Learn more about the Cortex Query Language arraydistinct() function that returns an array containing unique values found in the original array.

Syntax

arraydistinct (<array>)

Description

The arraydistinct() function accepts an array, and it returns a new array containing only unique elements found in the original array. That is, given the array:

[0,1,1,1,4,5,5]

This function returns:

[0,1,4,5]

Last updated

Was this helpful?