Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
This operation returns the values of a given lookup field upon successful key matching.
Info |
---|
Existing lookups required To perform this operation, it is necessary to have existing lookups ready for use (visit this article to get help uploading lookups and this article to get help creating query lookups). |
How does it work in the search window?
...
Argument | Description | Data type | ||
---|---|---|---|---|
Lookup name mandatory | Choose the lookup you want to use to enrich your table. | string | ||
Lookup field mandatory | Choose the lookup field you want to use to enrich your table. | string | ||
Key mandatory | Choose the table field you want to use to find matches with the lookup key field. | same as lookup key field | ||
Info |
Once you specify the adequate arguments and click the Create field button, the new field is added to your table.
...
select lu("Lookup_name", "Lookup_field", Key_field) as new_field
Info | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Existing lookups required To perform these operations, it is necessary to have existing lookups ready for use (visit this article to get help uploading lookups and this article to get help creating query lookups). Syntax considerations
|
Example
We want to enrich the siem.logtrust.web.activity
table with information about the working model in each city. If we want to work more comfortably, we can isolate the data we’re interested in by using filter and grouping operations. Then, we will After performing the operations you need to manipulate your data, such as filtering and grouping operations, you can use the Lookup (lu) operation with this upload lookup that contains info about company officesto enrich your data with the following upload lookup:
.View file name Lookups (Companies example).csv
These are the arguments needed when using the interface :
...
The values in the Office_type lookup field will be brought into our your table when the values in the city field and those in the lookup key field fields match. When they do not match, null will be returned.
...