Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Description
This operation returns all the values of a historical lookup row into a JSON field upon successful key correlation.
How does it work in the search window?
Select Create field in the search window toolbar, then select the Lookups category, and choose the Historical Lookup: retrieve json (hlurjson) operation from the dropdown (more info here). You need to specify three arguments:
Argument | Description | Data type | ||
---|---|---|---|---|
Lookup name mandatory | Choose the lookup you want to use to enrich your table. | string | ||
Key mandatory | Choose the table field you want to use to correlate with the lookup key field. | same as lookup key field | ||
Time | Choose the table timestamp you want to use to correlate with the lookup timestamp. It identifies the row with the highest timestamp in the lookup that is before the timestamp in your table. | timestamp | ||
|
...
The data type of the values in the new column will be JSON. You can then split the resulting JSON objects into their different key/value pairs and transform them into different data types using the operations in the JSON group.
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
How does it work in LINQ?
Use the create field operator select
... as new_field
and add the operation syntax to create the new column. This is the syntax for the Historical lookup:retrieve json (hlurjson) operation:
...
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 special considerations
|
Example
We want to enrich the siem.logtrust.web.activity
table with all the 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 use this upload lookup that contains info about company offices and the Historical lookup: retrieve json (hlurjson) operation.
...