Repository navigation
Q&A Dynamic uri in http sink #26251
QuestionHey Prior to 0.57, I dynamically constructed the uri using env vars. This was handy for managing a lot of separate streams: The variables were stored in a .env file (added to .gitignore), load with EnvironmentFile by systemd Is there any way to dynamically generate the uri in 0.57+? Creating a multiple separate full URLs in .env for every single stream or push URI to git is not an option for me:( Thanks! Vector ConfigNo response Vector LogsNo response |
Replies: 3 comments 1 reply
|
In this scenario you can either set |
|
@thomasqueirozb thank you, I already made it. But is there are really not exist way to dynamic build uri with use secret backend - I think, this is possible a popular way to use http_sink |
|
@thomasqueirozb, thank you for try to help! I found issue - it is a trouble with |
In this scenario you can either set
VECTOR_DANGEROUSLY_ALLOW_ENV_VAR_INTERPOLATION/--disable-env-var-interpolationwhich preserves the pre-0.57 behavior or useenvsubstto fill in the config file before running vector. See #26036 (specificallytests/e2e/datadog-metrics/config/compose.yamlandtests/e2e/Dockerfile)