yalp.parsers.regexΒΆ
The regex parser applies a regex to the message of an event. Any named components of the regex become new keys in the event dict with the matched strings becoming the values.
Note
The original message is removed from the event.
This parser supports the following configuration items:
- regex
- The regex to apply.
- type
- A type filter. Only apply the regex to events of this type.
Example configuration.
parsers:
- regex:
regex: '(?P<month>\w+)\s+(?P<day>\d+)'