Closed GEverding closed 8 years ago
You can override any configuration setting of Graylog using environment variables with the prefix GRAYLOG2_
, so you can simply use the environment variable GRAYLOG2_IS_MASTER
to do what you described.
Where is that documented??
Garrett
On Sun, Feb 28, 2016 at 6:48 AM -0800, "Jochen Schalanda" notifications@github.com wrote:
You can override any configuration setting of Graylog using environment variables with the prefix GRAYLOG2_, so you can simply use the environment variable GRAYLOG2_IS_MASTER to do what you described.
— Reply to this email directly or view it on GitHub.
Where is that documented??
Currently only in code and in occasional mailing list/GitHub issues comments.
Feel free to write a section about it in the documentation: https://github.com/Graylog2/documentation :wink:
Is this the same for graylog-web? I'm trying to override graylog2-server.uris
?
@GEverding The old Graylog web interface (pre-Graylog 2.0.0) does not support such overrides.
Problem description
Using docker/kubernetes to deploy graylog cluster. Need to set one of my graylog servers as master and one as slave. I have 2 containers one with a config with is_master=true and is_master=false. I'd like to be able to configure this with an env variable.
Environment