Skip to main content
Version: 4.0

outputlookup

Description

Writes the search result to a table (or file).

Syntax

...| outputlookup <lookup-name>  [append=<bool>] [key_field=<bool>]

Required Arguments

ParameterSyntaxDescription
lookup-name<field>The name of the predefined lookup.

Optional Arguments

ParameterSyntaxDefaultDescription
appendappend=<bool>falsetrue — appends to existing data, false — overwrites existing data.
key_fieldkey_field=<string>The field used to match records between the lookup table and the source data. Only documents with matching values in this field will be updated.

Query Examples

Example №1
source radius_logs
| outputlookup my_lookup
Example №2
source internal_audit*
| aggs count, latest(audit_category) as audit_category by audit_node_host_address
| outputlookup hosts_categories keyfield=audit_node_host_address packsize=200 nores=true