title: Logstash Unable to push logs to ES
body: <p>I am collecting logs from a NXlog server &amp; sending it to my Logstash server{ELK Stack on a AWS machine}. It was able to send the logs to ES perfectly but then it just stooped sending logs to ES with the following errors:</p>
  
  <pre><code>{:timestamp=&gt;"2015-10-13T06:41:25.526000+0000", :message=&gt;"Got error to send bulk of actions: localhost:9200 failed to respond", :level=&gt;:error}
  {:timestamp=&gt;"2015-10-13T06:41:25.531000+0000", :message=&gt;"Failed to flush outgoing items", 
  {:timestamp=&gt;"2015-10-13T06:41:26.538000+0000", :message=&gt;"Got error to send bulk of actions: Connection refused", :level=&gt;:error}
  </code></pre>
  
  <p>Is this a security group issue? or something else?</p>
  
  <p>Moreover my logstash-output file looks like :</p>
  
  <pre><code>output {
    stdout { }
    elasticsearch { host =&gt; "localhost" protocol =&gt; "http" port =&gt; "9200" }
  }
  </code></pre>