Allow for inline remap
and filter
options
#3463
Labels
domain: config
Anything related to configuring Vector
domain: processing
Anything related to processing Vector's events (parsing, merging, reducing, etc.)
domain: setup
Anything related to setting up or installing Vector
meta: idea
Anything in the idea phase. Needs further discussion and consensus before work can begin.
needs: approval
Needs review & approval before work can begin.
type: enhancement
A value-adding code change that enhances its existing functionality.
I'm submitting this as a mini RFC since I think it helps to express the problem best. An idea that has some overlap with #257 and #406 is the ability to express inline filtering and remapping.
Motivation
Building pipelines in Vector can be very verbose, which is largely caused by the need to perform basic operations like filtering and remapping. For example, the following pipeline attempts to add a
type
field depending on the field the event originated from:This config is very verbose.
Proposal
I propose that we allow for filtering and remapping directly within components. We've set precedence for this with the
coerce
transform being embedded as atypes
option within various parsing transforms. We should do something similar withfilter
andremap
:Inlining the
filter
optionInlining the
remap
optionAnd inlining a
remap
option reduces it even further:Rationale
Drawbacks
Open Questions
The text was updated successfully, but these errors were encountered: