Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.41k stars 1.07k forks source link

Override IS_MASTER with env variable #1868

Closed GEverding closed 8 years ago

GEverding commented 8 years ago

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

joschi commented 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.

GEverding commented 8 years ago

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.

joschi commented 8 years ago

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:

GEverding commented 8 years ago

Is this the same for graylog-web? I'm trying to override graylog2-server.uris ?

joschi commented 8 years ago

@GEverding The old Graylog web interface (pre-Graylog 2.0.0) does not support such overrides.