FileBeat To Exit when it can't reach LogStash


(Johan Jordaan) #1

Hi

Is it possible to configure FileBeat to exit if it cannot connect to LogStash. I lookup my logstash ip from etcd and then startup filebeat using this IP. If however the ip of logstash changes (which it can and will) i would like filebeat to stop. The restart process (managed by systemd) will then lookup the ip and configure filebeat to use the new ip. I would prefer not to revert to DNS to solve this issue. Any suggestions ?

Regards
Johan


(Tudor Golubenco) #2

Filebeat doesn't currently have that option, so I would recommend setting something outside of Filebeat, for example something like this.


(Johan Jordaan) #3

Nice. Confd would do exactly what I want. Thanks.


(system) #4