# Filebeat statup error

**URL:** <https://discuss.elastic.co/t/filebeat-statup-error/95476>\
**Category:** Logstash\
**Created:** [August 2, 2017, 8:22am UTC](https://discuss.elastic.co/t/filebeat-statup-error/95476 "2017-08-02T08:22:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_yang/32/20719_2.png) [@Joe\_Yang](https://discuss.elastic.co/u/Joe_Yang)\
**Post date:** [August 2, 2017, 8:22am UTC](https://discuss.elastic.co/t/filebeat-statup-error/95476/1 "2017-08-02T08:22:19Z")

</div>

Following this offical doc([https://www.elastic.co/guide/en/logstash/5.4/advanced-pipeline.html](https://www.elastic.co/guide/en/logstash/5.4/advanced-pipeline.html)) to run filebeat hits the folllowing error:

./filebeat -e -c filebeat.yml -d "publish"

2017/08/02 08:15:24.372074 output.go:109: DBG output worker: publish 50 events  
2017/08/02 08:15:24.451565 single.go:140: ERR Connecting error publishing events (retrying): Get [http://localhost:5043](http://localhost:5043): read tcp 127.0.0.1:36296-\>127.0.0.1:5043: read: connection reset by peer

first-pipeline.conf:  
input {  
beats {  
port =\> "5043"  
}  
}  
filter {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}"}  
}  
geoip {  
source =\> "clientip"  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
}  
}

filebeat.prospectors:

- input\_type: log
  - /home/mysqlmove/logstash-5.5.1/\*.log  
output.elasticsearch:  
hosts: ["localhost:5043"]

any advice wourld be appreciated

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 2, 2017, 8:37pm UTC](https://discuss.elastic.co/t/filebeat-statup-error/95476/2 "2017-08-02T20:37:58Z")

</div>

If you want Filebeat to send to Logstash you need to configure it to use a Logstash output instead of an Elasticsearch output.

[https://www.elastic.co/guide/en/beats/filebeat/current/config-filebeat-logstash.html](https://www.elastic.co/guide/en/beats/filebeat/current/config-filebeat-logstash.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 30, 2017, 8:38pm UTC](https://discuss.elastic.co/t/filebeat-statup-error/95476/3 "2017-08-30T20:38:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
