-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add ability to override configuration settings using environment variables. #114
Comments
Good suggestion, we'll add it. |
+1 How about using viper for a more complete config system ? If you lack the time but are ok with the idea I am willing to attempt a pull request (total go newbie here, but this should not be too difficult). |
Update to most recent libbeat version and shared files
I think this an excellent idea. I have a config file which looks like this: filebeat:
prospectors:
-
paths:
- "/var/log/supervisor/nginx*.log"
input_type: log
fields:
source: nginx
level: info
environment: development
output:
console:
pretty: true
logstash:
hosts: ["logstash.mpl.ninja:5044"] and I would like to be able to configure the list of logstash Anyone working on this? I could give a try if this is something you're willing to implement. |
@yoanisgil As far as I know there is currently no one working on this. I somehow see the need for this especially for larger deployment but at the same time I'm worried about having one more unknown to debug, in case of issue. Right now we know exactly what the config file is. @albanm I had a quick look at viper. Looks interesting, not sure if it is overkill for what we need. Also have a look at #464 |
Until there is an official solution, this is my current hack https://github.com/mingfang/docker-packetbeat-agent/blob/master/sv/packetbeat/run#L8. It's nothing innovative; just a simple sed hack. |
@mingfang I actually quite like this "hack" as it is simple and gets the job done. |
This feature was added. Please see #715 for details. |
Thanks guys for adding this feature! |
enhance lumberjack send mode
I'm trying to deploy the packetbeat agent to a cluster of machines using kubernetes.
However the ElasticSearch hostname needs to be configurable at deployment time.
I would like the ability to set that using environment variables,
e.g.
The text was updated successfully, but these errors were encountered: