Using env variables in kibana.yml

I understand this has been asked before but all responses are 1-2 years old.

I want to pass credentials in kibana.yml through a .env file.


// .env

USER=johndoe
PASS=secret

// kibana.yml

...
elasticsearch.username=%{USER}
elasticsearch.password=%{PASS}
...

Is the above method possible?

Yes, you can currently do this. The format is ${MY_ENV_VAR}

1 Like

Is it possible in Kibana v6.2.5, ES v6.2.4 on centOS 7.4 ?

No, sorry this was introduced in 6.3.0.

Alternatively, the Kibana configuration options can be passed to bin/kibana.

For example:
bin/kibana --elasticsearch.password=foo

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.