Regular expression support
Heartbeat regular expression support is based on RE2.
Before using a regular expression in the config file, refer to the documentation to verify that the option you are setting accepts a regular expression.
Note
We recommend that you wrap regular expressions in single quotation marks to work around YAML’s string escaping rules. For example, '^\[?[0-9][0-9]:?[0-9][0-9]|^[[:graph:]]+'
.
For more examples of supported regexp patterns, see Managing Multiline Messages. Although the examples pertain to Filebeat, the regexp patterns are applicable to other use cases.
The following patterns are supported:
- Single Characters
- Composites
- Repetitions
- Groupings
- Empty Strings
- Escape Sequences
- ASCII Character Classes
- Perl Character Classes