Open
Description
Request
Currently stage.replaces
extracts named group values after replacement takes place. Sometimes we'd like to extract original values and then replace them.
Current workaround is to have 2 stages: stage.regex
with named capture group to extract into map and stage.replace
with almost same regex to replace value.
Use case
extract and then remove timestamp from a logline. timestamp is then used in stage.timestamp
and becomes available in loki.