title: How to use AWS ELB as a output for Filebeat?
body: <p>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:</p>
  
  <p>`</p>
  
  <pre><code>output:
      logstash:
          # The Logstash hosts
          hosts: ["logstash-loadbalancer-1358451793.ap-southeast-2.elb.amazonaws.com:5044"]
  
          # Number of workers per Logstash host.
          worker: 2
  </code></pre>
  
  <p>`</p>
  
  <p>I have gone through some posts where people have done something similar but these also don't clearly mention the config.</p>
  
  <p><a href="https://discuss.elastic.co/t/can-i-add-loadbalance-to-filebeat-config-for-hosts-in-logstash-output/53378/5" rel="nofollow noreferrer">https://discuss.elastic.co/t/can-i-add-loadbalance-to-filebeat-config-for-hosts-in-logstash-output/53378/5</a></p>
  
  <p><a href="https://discuss.elastic.co/t/filebeat-only-goes-to-one-of-the-logstash-servers-that-is-behind-an-elb/48875/8" rel="nofollow noreferrer">https://discuss.elastic.co/t/filebeat-only-goes-to-one-of-the-logstash-servers-that-is-behind-an-elb/48875/8</a></p>
  
  <p>Can someone help out?</p>