Add options to specify and pass metadata on vector sink to help in routing message #17983
Labels
sink: vector
Anything `vector` sink related
source: vector
Anything `vector` source related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
I would like to have a vector aggregator to aggregate my logs and metrics produced by many independent cluster and needs to route it based on several metadata related to the cluster where those logs and metrics come, e.g. logs from cluster x should be routed to loki sink with x tenant id.
It also would be better if this metadata can be modified by reverse proxy so that i can do custom authn and authz.
I can already achieve this using HTTP sink and source since both of them can use/process auth and headers, but HTTP sink can only process logs data.
Attempted Solutions
modify individual event attributes to manually add metadata. The cons are
Proposal
Add features to specify auth and headers just like HTTP sink, and provide a way to access HTTP header in vector source just like HTTP source
References
No response
Version
vector 0.31.0 (x86_64-unknown-linux-gnu 0f13b22 2023-07-06 13:52:34.591204470)
Tasks
The text was updated successfully, but these errors were encountered: