-
Hi, I was hoping to use some templated configuration only swapping out the value of environment variables in Deployed a quick POC and ran great. Then noticed in the
Two questions then. Maybe this guidance may be misleading for anyone comes across it. https://github.com/vectordotdev/vector/blob/master/distribution/systemd/vector.default#L2 Next question is what is the appropriate mechanism for despatching environment variables for a vector systemd service if not Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
SPLUNK_INDEX=some_index in it?
|
Beta Was this translation helpful? Give feedback.
Correct, undefined variables in Vector configuration will become a hard error in the future. You can provide a default to preserve the current behavior with bash-like syntax. For example:
${SPLUNK_INDEX-}
.