-
Notifications
You must be signed in to change notification settings - Fork 494
Open
Labels
c/loki.processenhancementNew feature or requestNew feature or requestneeds-triageproposalA proposal for new functionality.A proposal for new functionality.
Description
Background
When passing log streams to loki.process, it's currently not possible to use existing structured metadata. Being able to work with existing structured metadata is crucial for transform those log entries.
Use case
We send log data to Alloy via loki.source.api. Received log entries contain a structured metadata field called pod. We need to transform it into a log label called instance.
Proposal
Add a new stage stage.structured_metadata_unpack which unpacks existing structured metadata into extracted values. This is done by 1:1 copying all data over. Optionally one could implement exclude/include parameters for this stage to limit the structured metadata to certain keys(/values).
Tip
React with 👍 if this issue is important to you.
Metadata
Metadata
Assignees
Labels
c/loki.processenhancementNew feature or requestNew feature or requestneeds-triageproposalA proposal for new functionality.A proposal for new functionality.
Type
Projects
Status
Likely Accept