Extract
Extract (extract)
Extract fields from text using regular expressions.
Contents
Fields
| Field | Type | Required | Description |
|---|---|---|---|
description | string | describe this step. | |
condition | lua-expression (string) | Only run this action if the specified condition is met. | |
input-field | event-field (string) | The field containing the text. | |
remove | boolean (bool) | Remove field containing text afterwards. | |
suppress-warnings | boolean (bool) | Suppress warnings generated by this action. | |
drop | boolean (bool) | Don’t pass through failed matches. | |
pattern | regex (string) | ✅ | Pattern containing named groups. Default is to use the group names. |
output-fields | string | field names to match with each matched group. | |
convert | string | Optionally convert these fields afterwards. The field names will override fields above. | |
output-pattern | string | Optionally, do a substitution using text containing $1, $2, etc. referring to captured groups. | |
output-field | event-field (string) | Write to this field if doing a substitution. |