Document toolboxDocument toolbox

At (at1)

Description

Returns the second element of a tuple.

How does it work in the search window?

Select Create field in the search window toolbar, then select the At (at1) operation. You need to specify the following argument:

Argument

Data type

Argument

Data type

Tuple mandatory

tuple

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

Example

In the siem.logtrust.web.activity table, we want to extract the second element of a tuple we’ve generated using the Make tuple operation. To do this, we will create a new field using the At (at1) operation. Let's call the new field TupleAt1.

The arguments needed to create the new field are:

  • Tuple - Tuple

Screenshot 2024-05-09 at 16.30.52.png

Click Create field and you will see the following result:

Screenshot 2024-05-09 at 16.31.32.png

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 At (at1) operation.

Use:

at1(tuple)

Example

You can copy the following LINQ script and try the above example on the siem.logtrust.web.activity table:

from siem.logtrust.web.activity select (srcPort, serverPort, ) as Tuple, at1(Tuple) as TupleAt1