title: Filebeat to logstash connection refused
body: <p>I'm trying to send log files from filebeat->logstash->elastic search. 
  filebeat.yml. But I'm getting the following error in filebeat log:</p>
  
  <pre><code>2017-12-07T16:15:38+05:30 ERR  Failed to connect: dial tcp [::1]:5044: connectex: No connection could be made because the target machine actively refused it.
  </code></pre>
  
  <p>My filebeat and logstash configurations are as follows:</p>
  
  <p>1.filebeat.yml</p>
  
  <pre><code>filebeat.prospectors:
  
  - input_type: log
    paths:
      - C:\Users\shreya\Data\mylog.log 
    document_type: springlog
   multiline.pattern: ^\[[0-9]{4}-[0-9]{2}-[0-9]{2}
    multiline.negate: true
    multiline.match: before
  output.logstash:
    hosts: ["localhost:5044"]
  </code></pre>
  
  <p>2.logstash.yml</p>
  
  <pre><code>    http.host: "127.0.0.1"
      http.port: 5044
  </code></pre>
  
  <p>3.logstash conf file:</p>
  
  <pre><code>input {
       beats {
          port =&gt; 5044
      codec =&gt; multiline {
      pattern =&gt; "^(%{TIMESTAMP_ISO8601})"
          negate =&gt; true
          what =&gt; "previous"
      }
    }
  }
  filter {
      grok{
      id =&gt; "myspringlogfilter"
      match =&gt; { "message" =&gt; "%{TIMESTAMP_ISO8601:timestamp}; [LOG_LEVEL=%{LOGLEVEL:log-level}, CMPNT_NM= %{GREEDYDATA:component}, MESSAGE=%{GREEDYDATA:message}" }
      overwrite =&gt; ["message"]
  
      }
  
  }
  output {
      elasticsearch {
          hosts =&gt; "localhost:9200" 
          manage_template =&gt; false
              index =&gt; "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}" 
          document_type =&gt; "%{[@metadata][type]}"     
      }
      stdout {
           codec =&gt; rubydebug
    }
  }
  </code></pre>