How to use AWS ELB as a output for Filebeat?

1.2k views Asked by At

I have a setup where a number of beat agents are sending files to Amazon ELB , the ELB then sends the traffic to 2 Logstash servers. I am trying out the following configuration to work this out but i this doesn't seem to work at all:

`

output:
    logstash:
        # The Logstash hosts
        hosts: ["logstash-loadbalancer-1358451793.ap-southeast-2.elb.amazonaws.com:5044"]

        # Number of workers per Logstash host.
        worker: 2

`

I have gone through some posts where people have done something similar but these also don't clearly mention the config.

https://discuss.elastic.co/t/can-i-add-loadbalance-to-filebeat-config-for-hosts-in-logstash-output/53378/5

https://discuss.elastic.co/t/filebeat-only-goes-to-one-of-the-logstash-servers-that-is-behind-an-elb/48875/8

Can someone help out?

1

There are 1 answers

0
robertjskelton On

I ran into this as well, my issue was that my ELB wasn't listening on that port (5044). I added a 5044 <-> 5044 TCP listener and filebeat was able to connect to logstash through the ELB.