Skip to content

Remove

Remove (remove)

Remove fields from an event.

Transform json

Minimal example

actions:
- remove:
fields: []
JSON
{
"actions": [
{
"remove": {
"fields": []
}
}
]
}

Contents

Fields

FieldTypeRequiredDescription
fieldsstring[]The list of fields that should be removed if present May contain a wildcard '' at the end (like ‘flag’).
description Generalstringdescribe this step.
suppress-warnings Warningsboolean (bool)Suppress warnings generated by this action.
condition Generallua-expression (string)Only run this action if the specified condition is met.
Examples: 2 * count()
remove-on-regex-mismatchboolean (bool)Controls how regex-fields behaves: * false (default) → delete the fields whose names match any regex. * true → delete the fields whose names do not match any regex. If no regex matches at all, every top-level field is removed. This is useful when upstream systems must never see unexpected keys.
regex-fieldsregex[] (string)An array of regular expression used to match field names.
Examples: \d+[A-Z]*

General

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

Warnings

Show fields
FieldTypeRequiredDescription
suppress-warningsboolean (bool)Suppress warnings generated by this action.