skip to Main Content

How can I use environment variables in fluentd config? – CentOS

I have problem with using env at td-agent config, I tried: <source> @type tail path /home/td-agent/test.txt tag "#{ENV['WEBTEST']}" pos_file /var/log/td-agent/td-agent-test.pos @include /etc/td-agent/web_parse_regex.conf </source> /etc/sysconfig/td-agent : export WEBTEST="webtest" and when I start td-agent and check td-agent.log, tag is empty 2020-06-09 15:40:20…

VIEW QUESTION
Back To Top
Search