File beat to switch logstash host in case of failure

I've raised this PR to clear this up https://github.com/elastic/beats/pull/3476