Processor object reference
This topic describes the API schema for each type of processor in Imply Lumi that you can use to transform incoming events. Use the schema to define processors for pipelines you manage with the Imply Lumi Terraform provider. Select the processor type to view the fields that define it.
In an infrastructure-as-code workflow, you can define your pipeline and processors in a JSON file committed to version control. Create a pipeline resource in your Terraform configuration that reads from the JSON file. Update the file and apply changes when you want to update your pipeline.
You can download the Processors OpenAPI spec to use in your AI agents or API platforms to generate the processor definitions.
To learn about processors in Lumi, see Processors reference.
Possible values: [attribute_mapper, attribute_remover, conditional_mapper, expression_processor, grok_parser, key_value_parser, lookup_mapper, message_mapper, nested_pipeline, regex_parser, redaction_processor, status_mapper, timestamp_mapper, value_mapper, windows_parser]
- attribute_mapper
- attribute_remover
- conditional_mapper
- expression_processor
- grok_parser
- key_value_parser
- lookup_mapper
- message_mapper
- nested_pipeline
- regex_parser
- redaction_processor
- status_mapper
- timestamp_mapper
- value_mapper
- windows_parser
sourceAttribute objectrequired
The attribute to copy values from
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falsetargetAttribute objectrequired
The attribute to copy values to
The reference to the attribute
How a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nulltargetAttributes object[]required
List of attributes to remove from events
The reference to the attribute
cases object[]required
Ordered list of conditions to evaluate. Only the first match is applied.
The condition to evaluate using Lumi query syntax
Possible values: [static_value, attribute_reference]
- static_value
- attribute_reference
The static value to use if the condition is true
attribute objectrequired
A reference to a user attribute on Lumi events
The reference to the attribute
targetAttribute objectrequired
The attribute to copy values to
The reference to the attribute
How a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nullAn expression to be evaluated against events.
Supported literal values:
strings in double quotes (eg. "string value"), numbers (eg. 12345),
TRUE, FALSE (boolean - usable only inside predicates).
Supported user attribute references:
attributeName - bare identifier,
'attributeName' - single-quoted (allows spaces, hyphens, and reserved-word names, e.g. 'my field', 'case'),
$.jsonpath.expression, $["jsonpath"]["expression"].
Supported arithmetic and concat operators:
+, -, *, /, %, parentheses for grouping.
. (dot) - string concatenation; both sides coerced to string.
Supported value functions:
COALESCE, CONCAT, REPLACE, TRIM, LTRIM, RTRIM, UPPER, LOWER, SUBSTRING / SUBSTR, LENGTH / LEN,
ROUND, FLOOR, CEIL / CEILING, POW, NULL(), NULLIF, TRUE, FALSE,
TONUMBER(x[, base]) - base defaults to 10, which also reads decimals and exponents,
TOSTRING - joins a multi-value with single spaces, URLDECODE, JSON_EXTRACT, SPATH,
BIT_AND, BIT_OR, BIT_XOR, BIT_NOT, BIT_SHIFT_LEFT, BIT_SHIFT_RIGHT,
SPLIT, MVAPPEND, MVCOUNT, MVDEDUP, MVFILTER, MVFIND, MVINDEX, MVJOIN, MVMAP,
MVRANGE, MVSORT, MVZIP, MV_TO_JSON_ARRAY, PUNCT.
Supported conditional expressions (return values):
IF(cond, then, else) - if cond is NULL, takes the else branch,
CASE(cond1, val1, cond2, val2, ..., [default]) - NULL conditions are skipped.
Supported predicates (boolean - only valid inside IF/CASE conditions and AND/OR/NOT/XOR):
comparisons (==, =, !=, <, <=, >, >=) follow each operand's type. An attribute value
that reads as a number is a number that also keeps its text, and COALESCE, IF
and CASE return a value with its type. Two numbers compare numerically, a string
and an attribute's number compare as strings, and a computed number (a numeric
literal, arithmetic, TONUMBER) against a string is false for every operator,
LIKE(str, pattern) with SQL % and _ wildcards (% and _ for literals),
IN(field, c1, c2, ...) - each candidate compares as == does; candidates are
arbitrary value expressions; with strict
SQL three-valued logic over NULL: TRUE if a non-null candidate matches; NULL
if no non-null candidate matches and any candidate is NULL; FALSE if no match
and no NULL candidates,
STARTS_WITH(str, prefix), ENDS_WITH(str, suffix), CONTAINS(str, sub) - case sensitive,
MATCH(str, regex) - partial match,
CIDRMATCH(ip, cidr),
ISNULL(x), ISNOTNULL(x),
ISNUM(x) - true for a number, or for an attribute whose value reads as a number
(including through COALESCE, IF and CASE),
LIKE, IN, STARTS_WITH, ENDS_WITH, CONTAINS and MATCH are true for a multi-value
when any element satisfies them,
true(), false() - function-call forms of the TRUE and FALSE literals.
Supported boolean operators (NULL operands are coerced to FALSE):
AND, OR, XOR, NOT.
Operator precedence (high to low):
unary -, NOT; * / %; + -; . (dot concat); comparisons and predicate functions; AND; XOR; OR.
Local bindings:
An expression may open with any number of let name = <expression>; bindings,
each naming a reusable subexpression. A binding is evaluated at most once per
event, only if something references it, and its result is reused everywhere it
appears. Example:
let idx = MVFIND(stat_type, "^MEM_TOTAL$");
let high = IF(ISNOTNULL(idx), MVINDEX(stat_high, idx), NULL());
TONUMBER(high, 16) / 1024
A binding may reference only the bindings declared above it; forward and
circular references are rejected. A name may not repeat, may not be _raw, and
may not be a reserved word - the 'name' and $['name'] escapes below apply to
references, not to the name a binding declares.
A binding is read by the bare name or single-quoted 'name' form. A JSONPath
reference reads the event directly, so $.name and $['name'] see the attribute
even when name is bound - the same carve-out _raw has.
Within the expression a binding shadows an event attribute of the same name,
while an MVFILTER/MVMAP element still shadows a binding. A binding's own body is
always evaluated outside any element frame, so a reference inside it reads the
whole attribute rather than the element being iterated, and a binding forced
inside an MVMAP yields the same value for every element. Bindings hold values,
not predicates - wrap a condition in IF to bind its result.
let is not a reserved word: an attribute named let still resolves normally.
Reserved words (cannot be used as bare attribute names - use 'name' single-quote form or $['name'] JSONPath bracket form to escape):
AND, BIT_AND, BIT_NOT, BIT_OR, BIT_SHIFT_LEFT, BIT_SHIFT_RIGHT, BIT_XOR, CASE,
CEIL, CEILING, CIDRMATCH, COALESCE, CONCAT, CONTAINS, ENDS_WITH, FALSE, FLOOR,
IF, IN, ISNOTNULL, ISNULL, ISNUM, JSON_EXTRACT, LEN, LENGTH, LIKE, LOWER, LTRIM,
MATCH, MVAPPEND, MVCOUNT, MVDEDUP, MVFILTER, MVFIND, MVINDEX, MVJOIN, MVMAP,
MVRANGE, MVSORT, MVZIP, MV_TO_JSON_ARRAY, NOT, NULL, NULLIF, OR, POW, REPLACE,
ROUND, RTRIM, SPLIT, STARTS_WITH, SUBSTR, SUBSTRING, TONUMBER, TOSTRING, TRIM,
TRUE, UPPER, URLDECODE, XOR.
Booleans cannot be stored as values: a top-level expression must yield a string or
number. Wrap predicates in IF or CASE to materialize them as values.
How a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nulltargetAttribute objectrequired
The attribute to which to assign the processed expression result.
The reference to the attribute
helperRules object
An optional dictionary of extra matchers to factorize parsing rules
An array of grok rules on how to extract attributes from source attribute.
A capture may declare a type as %{PATTERN:field:type}. Alongside the decimal
types grok itself reads (int, long, float, double, boolean), hex reads a
base-16 integer, with or without an 0x prefix. A value that does not parse is
kept as a string. hex applies only where the rule captures that field name
once; a name captured by several groups is left as grok returned it.
sourceAttribute object
The source attribute to match rules against. Attribute value must be a string or number. If omitted, defaults to matching against the event message.
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falseHow a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nullextractor object
The key-value extraction method to use
The key-value extraction method to use
Possible values: [CEF, CSV, CUSTOM, EQUAL_SIGN, JSON, XML]
- CEF
- CSV
- CUSTOM
- EQUAL_SIGN
- JSON
- XML
Whether to rename a custom field after the label field CEF pairs it with, so cs1Label=Rule cs1=APG 01_ is emitted as Rule=APG 01_. The raw cs1 and cs1Label keys are then dropped.
Possible values: [COMMA, TAB, CUSTOM]
COMMARequired when delimiter is CUSTOM
Possible values: non-empty and <= 1 characters
target objectrequired
Possible values: [MULTI, SINGLE]
- MULTI
- SINGLE
Delimiter-separated list of header names (keys for extraction)
Attribute name for the output array
MULTI targets only. What a header that names several columns extracts. REJECT refuses repeated headers, including a header that matches a name extraColumnPrefix generates. FIRST takes the first non-empty column, and MULTIVALUE takes every non-empty column in column order. An empty header never counts as a repeat: its column is skipped.
Possible values: [REJECT, FIRST, MULTIVALUE]
REJECTMULTI targets only. When true, an empty column writes nothing instead of an empty string.
falseMULTI targets only. When set, a column past the last header is extracted as if its header were this prefix followed by the column's 1-based position (with prefix EXTRA_FIELD_, the fifth column of a row with three headers is EXTRA_FIELD_5). When omitted, those columns are dropped.
Possible values: non-empty
The regular expression pattern to match
Whether to allow multiple regex extractions for the same attribute. If omitted or false, only the first match will be used. If true, will append repeated values with a '|' separator (eg.: key1="val1|val2|val3", key2="val4").
falseWhen true, each extracted key is cleaned: every character other than an ASCII letter or digit becomes '_', then leading underscores and digits are removed (eg.: "9src-ip" becomes "src_ip"). A key containing any non-ASCII character only has its leading underscores and then any surrounding whitespace removed. A match whose key cleans to nothing is skipped.
falseWhether to flatten the JSON structure into a single level. If true, nested attributes will be concatenated with a '.' separator.
Whether to flatten the XML structure into a single level. If true, nested attributes will be concatenated with a '.' separator.
sourceAttribute object
The source attribute to extract from. If omitted, defaults to matching against the event message.
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falseHow a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nullControls the prefix for extracted attributes. If null (default), uses sourceAttribute name as prefix when extracting from sourceAttribute, or no prefix when extracting from log message. If empty string, removes all prefixes. If non-empty, uses the specified custom prefix.
Optional value to write to each target attribute when the lookup misses, because a source attribute or a matching row is missing. It takes any attribute value, usually a string. If null, a miss writes no value.
Optional comma-separated list of attributes. If null assume lookupCsv has headers.
Delimiter-separated values string representing the lookup table.
Unless headers is set, the first row names the columns.
The key columns are sourceAttributes, or the first column when that is null.
Delimiter used in the lookup CSV. Defaults to comma (","), including when empty.
Possible values: <= 1 characters
,How a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nullsourceAttributes object[]nullable
Optional list of attributes to read values from. If null, assume first header column.
The reference to the attribute
targetAttributes object[]nullable
Optional list of attributes to write values to. If null, assume remaining non-source header columns.
The reference to the attribute
matchTypes objectnullable
Optional match type per key column, keyed by column name. A key column not listed here matches EXACT. Every name must be a key column.
How a lookup key column compares an event value with the column's cells.
EXACT - the value equals the cell.
CIDR - the value is an IP address inside the cell's CIDR block (IPv4 or IPv6). A cell
without a prefix length matches that one address.
WILDCARD - the cell is a pattern in which * matches any run of characters.
Possible values: [EXACT, CIDR, WILDCARD]
Whether EXACT and WILDCARD key columns respect case. Defaults to true.
The most matching rows applied per event, taken in file order, from 1 to 1000. Defaults to 1. When more than one row matches, each target attribute collects that column's non-empty values from the matching rows, as a multi-value when there are two or more.
Possible values: >= 1 and <= 1000
Whether a lookup that misses (no row matches, or a source attribute is missing or
unreadable) removes the target attributes. Requires writeMode OVERRIDE and
cannot be set together with fallbackValue. Defaults to false.
Whether an event missing any source attribute is left unchanged, with no lookup,
fallbackValue or removeOnMiss applied. Defaults to false.
sourceAttribute objectrequired
The attribute to copy value from
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falseOverwrite with empty string if attribute is missing or empty
Identifier of the child pipeline that backs this nested processor. The server assigns it when it creates the processor.
Optimistic-lock token of the child pipeline named by pipelineId. Echo it in the
If-Match header when mutating /v0/pipelines/{pipelineId}/processors.
The PUT /v0/pipelines/{id} response, pipeline templates and conversion results
carry 0 instead of a stored child's version; read the pipeline to get it.
Omitted from GET /v0/pipelines/{id}/export. Ignored on request bodies.
processors []required
List of processors to apply in this pipeline
Query that filters which events this pipeline applies to
sourceAttribute object
The source attribute to match the regular expression against. Attribute value must be a string or number. If omitted, defaults to matching against the event message.
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falsetargetAttributes object[]deprecated
DEPRECATED: Prefer using 'target_attribute' parserBehavior instead. List of attributes to receive the captured groups from the pattern.
The reference to the attribute
The regular expression pattern to match
parserBehavior object
Possible values: [format_string, named_capture_group, target_attribute]
- format_string
- named_capture_group
- target_attribute
format object[]
A format string that defines the target attribute. Can refer to regex capture groups from the pattern with $n syntax, starting from 1. If a capture group is referenced, the regex will be repeatedly applied, allowing for multiple attributes to be extracted from the same pattern. Otherwise, only the first match will be used.
A format string that defines the target attribute's value. Can refer to regex capture groups from the pattern with $n syntax. The special index $0 can be used to reference the previous value of the target attribute before parsing, which resolves to an empty string if it's not present.
Whether to allow multiple regex extractions for the same attribute. If omitted or false, only the first match will be used. If true, will append repeated values with a '|' separator (eg.: key1="val1|val2|val3", key2="val4"). This property is only applicable when the attributeFormat in the format pair references a capture group.
falsetargetAttributes object[]required
List of attributes to receive the captured groups from the pattern
The reference to the attribute
How a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nullstrategy objectrequired
Possible values: [STRING, HASH]
- STRING
- HASH
The text that will replace the existing text in matched groups.
The algorithm used to hash the matched text.
Possible values: [MD5, SHA-1, SHA-256, SHA-384, SHA-512]
SHA-256Position to apply the salt to the text to be hashed.
Possible values: [APPEND, PREPEND]
PREPENDOptional salt value to be added to text to be hashed.
Pattern used to match against the text for redaction.
sourceAttribute object
Source of the string to redact. May be blank/null for the message or a value referencing a user attribute.
The reference to the attribute
sourceAttribute objectrequired
The attribute to read values from
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falsecustomMapping object
Optional dictionary to map the value to a status, applied before the default mapping
The status of a Lumi event
Possible values: [DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY, OK, null]
nullThe status of a Lumi event
Possible values: [DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY, OK, null]
nullsourceAttribute objectrequired
The attribute to read timestamp from
The reference to the attribute
Whether the value should be processed as a JsonPath expression
falsetimeParser object
Possible values: [auto, custom, standard]
- auto
- custom
- standard
Custom datetime format to parse the timestamp.
The format of the timestamp to be parsed
Possible values: [ISO_8601, EPOCH_SECONDS, EPOCH_MILLISECONDS, EPOCH_MICROSECONDS, EPOCH_NANOSECONDS, DATE, CLF]
The timezone that gets applied if a timestamp doesn't have one; UTC when absent. Accepted spellings, read in this order:
- One of a fixed list of timezone abbreviations, such as
EST,CETorJST, in any letter case, as a fixed offset:CETis one hour east of UTC all year. An abbreviation outside the list, such asSGT, is rejected. - A numeric offset, colon optional, up to 23:59:
+05:30,-4, orGMT+5withGMTin capitals. - An IANA zone ID such as
America/New_York, with its summer-time rules. - A POSIX TZ string such as
UTC+2,gmt+5orEST5EDT,M3.2.0,M11.1.0, whose offset counts hours west of UTC:UTC+2is two hours behind UTC.
America/New_YorkUse the current system time as the value to map into the target attribute
The fixed value to map into the target attribute if useCurrentTime is false or empty
targetAttribute objectrequired
The attribute name to map the static value to
The reference to the attribute
How a processor writes into a target attribute that may already hold a value.
PRESERVE - keep the existing value; write only when the attribute has none.
OVERRIDE - replace whatever the attribute holds.
APPEND - merge into the existing value, producing a multi-value. Existing multi-values
are flattened rather than nested, duplicates are kept, and a result that
leaves a single element stays a plain value. Appending nothing writes nothing.
The default when omitted, and when the deprecated override boolean is also absent,
depends on what the processor writes: OVERRIDE for grok_parser and regex_parser, which
write their extractions unconditionally, and PRESERVE for every other processor that
accepts this field.
Possible values: [PRESERVE, OVERRIDE, APPEND, null]
nullOptional description of the processor
Whether this processor is enabled
Unique identifier for the processor, which the server assigns when it creates the processor.
Human-readable name for this processor
{
"type": "value_mapper",
"name": "Assign index",
"description": "Maps a static value",
"enabled": true,
"staticValue": "docs",
"targetAttribute": {
"value": "index"
}
}