regex | Grafana Labs
grafana.com › latest › clientsregex stage. The regex stage is a parsing stage that parses a log line using a regular expression. Named capture groups in the regex support adding data into the extracted map. Schema regex: # The RE2 regular expression. Each capture group must be named. expression: <string> # Name from extracted data to parse. If empty, uses the log message.
replace | Grafana Labs
grafana.com › clients › promtailThe replace stage is a parsing stage that parses a log line using a regular expression and replaces the log line. Named capture groups in the regex support adding data into the extracted map. Schema replace: # The RE2 regular expression. Each named capture group will be added to extracted.