Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Description

This operation joins the strings of a given array to form a single string.

How does it work in the search window?

Select Create field in the search window toolbar, then select the Join operation. You need to specify at least one argument:

Argument

Data type

Array mandatory

Array(str)

Use the Make Array (mkarray) operation to convert a field to array data type.

separator

Any

Automatic conversion

Fields of a different data type will be automatically converted to the target data type for the operation, if possible. When not possible, you must first convert the field to the expected data type.

The data type of the values in the new field is string.

Example

In the siem.logtrust.web.activity table, we want to transform the integer values in the params into an array to be joined

To do this, we will first use the Make array operation to transform the params field into an array data type for further use.

Now we can use this array to create a new field using the Join operation.

The arguments needed to create the new field are:

  • Array of strings - Array

Click Create field and you will see the following result:

How does it work in LINQ?

Use the operator select... as...  and add the operation syntax to create the new field.

This is the syntax for the Join operation.

Use:

join(["a","bc","def"],   "#") === "a#bc#def"'
join(["a","bc","def"], "123") === "a123bc123def"'
join(["a","bc","def"],  null) === "abcdef"'
join(null, "#")               === null'

Example

You can copy the following LINQ script and try the above example on the siem.logtrust.web.activity table. Keep in mind that you must download and upload the file provided before to your Devo domain.

from siem.logtrust.web.activity
  select [params] as Array,
    join(Array) as join

  • No labels