object_create

Cortex XDR XQL object_create() function creates an object based on the given parameters.

Synopsis

object_create ("<
key1
>", "<
value1
>", "<
key2
>", "<
value2
>",...)

Description

The
object_create()
function returns an object based on the given parameters defined for the key and value pairs. Accepts n > 1 even number of parameters.

Example

Returns a final object to a field called a that contains the key and value pair {“2”:“password”}, where the "password" value is comprised by joining 2 values together.
dataset = xdr_data | alter a = object_create("2", concat("pass", "word")) | fields a

Recommended For You