Set Mixed Environment Variable in Config #4175
Unanswered
briandannenmueller
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to insert the environment variable into a path in the config file?
I am using Fluentd version 1.13.3 with the following source block:
``
LOG_FILE has been set as "test.log". While I have confirmed that this environment variable is in place, the source block does not seem to be inserting the file name into the path and pos_file. The tail plugin works when it is hard coded in, and ceases to work (with no indication of logs that anything is amiss) if I use the environment reference. We require that the path and pos_file be a combination of a default path with a varying file name. Is there a special syntax that I need to use to make this work?
Beta Was this translation helpful? Give feedback.
All reactions