Skip to content

allow stage.replace to extract original values into shared map #3967

Open
@redbaron

Description

@redbaron

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions