FileBeat To Exit when it can't reach LogStash

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

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

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