Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

td-agent not picking up environment variables #286

Open
mattups opened this issue Sep 23, 2021 · 0 comments
Open

td-agent not picking up environment variables #286

mattups opened this issue Sep 23, 2021 · 0 comments

Comments

@mattups
Copy link

mattups commented Sep 23, 2021

I'm trying to make td-agent use and environment variable to get the user password for elasticsearch:

@type elasticsearch
host myelasticsearch
user fluentd
password "#{ENV['FLUENTD_PASSWORD']}"
port 9200

This snippet above is called by an @include directive of another file.

I tried to use export FLUENTD_PASSWORD=mypassord but when starting up td-agent it cannot authenticate to my elastcsearch.

td-agent version is: td-agent 4.1.1 fluentd 1.12.3 (b6e76c09d60ee866de6470f2bdd2551e7c8591d3)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant