Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set some common parameters via environment #68

Closed
ddrozdov opened this issue Jan 21, 2016 · 3 comments · Fixed by #74
Closed

Set some common parameters via environment #68

ddrozdov opened this issue Jan 21, 2016 · 3 comments · Fixed by #74
Assignees
Milestone

Comments

@ddrozdov
Copy link

Instead of creating custom a config file just to set a non-default elasticsearch port for example, it would be more convenient to be able to set it via the environment variables.
Like this:

docker run -d ... -e HOST=192.168.0.1 -e PORT=9999

See the example of this approach here: https://github.com/athieriot/docker-elastic-topbeat

I suggest to support this list of variables: PERIOD, HOST, PORT, SHIPPER_NAME, SHIPPER_TAGS.

@tsg
Copy link

tsg commented Jan 21, 2016

Just a heads up, libbeat now supports setting env variables in the configuration files: elastic/beats#715

So dockerbeat could get this automatically by updating its libbeat version.

@marminthibaut
Copy link
Member

Oh i try it right away!

@erwanncloarec
Copy link
Contributor

I just tried, it does not seem to work with the current dockerbeat version.

We have to update libbeat for that

@marminthibaut marminthibaut added this to the 1.0.0-beta3 milestone Feb 12, 2016
@marminthibaut marminthibaut self-assigned this Feb 12, 2016
marminthibaut added a commit that referenced this issue Feb 16, 2016
Dockerbeat can be configured via env vars
Closes #68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants