Remove
Remove (remove)
Remove fields from an event.
Transform json
Minimal example
actions: - remove: fields: []JSON
{ "actions": [ { "remove": { "fields": [] } } ]}Contents
Fields
| Field | Type | Required | Description |
|---|---|---|---|
fields | string[] | ✅ | The list of fields that should be removed if present May contain a wildcard '' at the end (like ‘flag’). |
description General | string | describe this step. | |
suppress-warnings Warnings | boolean (bool) | Suppress warnings generated by this action. | |
condition General | lua-expression (string) | Only run this action if the specified condition is met. Examples: 2 * count() | |
remove-on-regex-mismatch | boolean (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-fields | regex[] (string) | An array of regular expression used to match field names. Examples: \d+[A-Z]* |
General
Show fields
| Field | Type | Required | Description |
|---|---|---|---|
description | string | describe this step. | |
condition | lua-expression (string) | Only run this action if the specified condition is met. Examples: 2 * count() |
Warnings
Show fields
| Field | Type | Required | Description |
|---|---|---|---|
suppress-warnings | boolean (bool) | Suppress warnings generated by this action. |