I have a requirement where my filebeat will connect to Logstash and ships the file content. But I really dont have a failover mechanism now if my logstash goes down. If my logstash goes down, Log4j will rotate the files and I will end up losing data. So as a failover if logstash is unreachable for a specific amount of time, I need to move the files to a remote host where i have adequate storage. After a while when logstash is up, filebeat should continue to send to logstash.
Is there a way we can do this in filebeat ?