regex | Grafana Labs
https://grafana.com/docs/loki/latest/clients/promtail/stages/regexregex: expression: <string> [source: <string>] YAML. expression needs to be a Go RE2 regex string. Every capture group (re) will be set into the extracted map, every capture group must be named: (?P<name>re). The name of the capture group will be used as the key in the extracted map. Because of how YAML treats backslashes in double-quoted ...