Skip to content

Expand Events

Expand Events (expand-events)

expand a single JSON document into multiple JSON events.

Transform json

Minimal example

actions:
- expand-events:
skip-list: []
JSON
{
"actions": [
{
"expand-events": {
"skip-list": []
}
}
]
}

Contents

General

General
FieldTypeRequiredDescription
descriptionstringdescribe this step.
conditionlua-expression (string)Only run this action if the specified condition is met.
Examples: 2 * count()

Input

Input
FieldTypeRequiredDescription
input-fieldfield (string)Field containing the payload to expand.
Examples: data_field

Output

Output
FieldTypeRequiredDescription
removeboolean (bool)Remove the source field after expansion.
Default: false
output-split-fieldfield (string)Field used to emit each expanded record.
Examples: data_field
skip-listregex[] (string)JSON Pointer patterns (regex) to skip flattening when event-expand.
Examples: \d+[A-Z]*
exclude-non-empty-arraysboolean (bool)Exclude all arrays that are not empty after expansion.
Default: false

Warnings

Warnings
FieldTypeRequiredDescription
suppress-warningsboolean (bool)Suppress warnings generated by this action.
Default: false