parsing/log_line_parser_utils library
Template-driven log line parser — roadmap #631.
Compiles a log-format template with {field} placeholders into a regex that
extracts each field from a log line into a Map<String, String>. The literal
text between placeholders (spaces, brackets, quotes) delimits the fields, so
the common access-log shapes parse without a bespoke regex. Presets cover
Apache common/combined and nginx; custom formats are just a template string.
A field defaults to a lazy match bounded by the next literal; give it an
explicit regex with {name:pattern} (e.g. {status:\d+}) when the default
would over-match. Field names must be unique within a template.
Classes
- LogLineParser
- Parses log lines against a compiled format template.