enrich
Resets data with a context.
Description
The context::inspect
operator shows details about a specified context.
name: string
The name of the context to inspect.
key = any
The field to use for the context lookup.
into = field (optional)
The field into which to write the enrichment.
Defaults to the context name (name
).
mode = string (optional)
The mode of the enrichment operation:
set
: overwrites the field specified byinto
.append
: appends into the list specified byinto
. Ifinto
isnull
or anempty
list, a new list is created. Ifinto
is not a list, the enrichment will fail with a warning.
Defaults to set
.
format = string (optional)
The style of the enriched value:
plain
: formats the enrichment as retrieved from the context.ocsf
: formats the enrichment as an OCSF Enrichment object with fieldsdata
,provider
,type
, andvalue
.
Defaults to plain
.
Examples
Enrich with a lookup table
Create a lookup table:
Add data to the lookup table:
Enrich with the table:
Enrich as OCSF Enrichment
Assume the same table preparation as above, but followed by a different call to
context::enrich
using the format
option:
Enrich by appending to an array
Enrich twice with the same context and accumulate enrichments into an array:
See Also
context::create_bloom_filter
,
context::create_geoip
,
context::create_lookup_table
,
context::inspect
,
context::list
,
context::load
,
context::remove
,
context::reset
,
context::save
,
context::update