Regex processor
The regex processor applies a regular expression with named capture groups to a field in the event and stores the extracted values. Use it for log formats with a known structure that can be parsed with a regex.
Configuration
Options
| Option | Type | Description |
|---|---|---|
source | object | Required. Nested source configuration |
rules | array | Required. List of parsing rules |
Rule structure
| Field | Type | Description |
|---|---|---|
match[].path | string | JSONPath to the field to match |
match[].value | string | Value to match |
field | string | Field to apply the regex against |
pattern | string | Regular expression with named capture groups ((?P<name>...)) |
target | string | Field to store the extracted values |
Example: Parse custom application logs
Given log lines like:
Configure: