# Filebeat and Logstash connection refused error

**URL:** <https://discuss.elastic.co/t/filebeat-and-logstash-connection-refused-error/94862>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 27, 2017, 8:06pm UTC](https://discuss.elastic.co/t/filebeat-and-logstash-connection-refused-error/94862 "2017-07-27T20:06:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [July 27, 2017, 8:06pm UTC](https://discuss.elastic.co/t/filebeat-and-logstash-connection-refused-error/94862/1 "2017-07-27T20:06:43Z")

</div>

Hi !

I am trying to send the logs to logstash using filebeats  
I'm getting this error

I ran the commands :

1. sudo /etc/init.d/filebeat start and then after I ran

2. ./filebeat -e -v -c filebeat.yml

I understood there is a connection problem between filebeat and logstash  
Could any one help with this?

Thanks!

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 28, 2017, 2:39am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-connection-refused-error/94862/2 "2017-07-28T02:39:30Z")

</div>

Hello,

Can you post your logstash pipeline to receive this input and the logstash log to see if the listener started? And also your filebeat configuration?

Your filebeat output should be something like that.

```auto
output.logstash:
  hosts: ["127.0.0.1:5044"]

```

Your input in the logstash configuration should be something like that.

```auto
input {
    beats {
        port => 5044
    }
}

```

Are the configurations like the ones above?

---

<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 25, 2017, 6:59pm UTC](https://discuss.elastic.co/t/filebeat-and-logstash-connection-refused-error/94862/4 "2017-08-25T18:59:17Z")

</div>

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