# Using filebeat to pass log files to logstash error

**URL:** <https://discuss.elastic.co/t/using-filebeat-to-pass-log-files-to-logstash-error/72860>\
**Category:** Logstash\
**Created:** [January 26, 2017, 8:03am UTC](https://discuss.elastic.co/t/using-filebeat-to-pass-log-files-to-logstash-error/72860 "2017-01-26T08:03:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianwong](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@brianwong](https://discuss.elastic.co/u/brianwong)\
**Post date:** [January 26, 2017, 8:03am UTC](https://discuss.elastic.co/t/using-filebeat-to-pass-log-files-to-logstash-error/72860/1 "2017-01-26T08:03:45Z")

</div>

Hi I have setup both logstash and filebeat such that filebeat will send logs to localhost:5043 while logstash will listen for input on port 5043. However I keep getting the error  
" ERR Connecting error publishing events ( retrying): dial tcp 127.0.0.1:5043: connectex: No connection could be made because the target machine actively refused it." What is the error that is causing this?

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 26, 2017, 1:18pm UTC](https://discuss.elastic.co/t/using-filebeat-to-pass-log-files-to-logstash-error/72860/2 "2017-01-26T13:18:46Z")

</div>

Are you using 127.0.0.1 specifically? Do you have any sort of local proxy or firewall enabled?

---

<div class="post-metadata">

**Author:** ![brianwong](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@brianwong](https://discuss.elastic.co/u/brianwong)\
**Post date:** [January 31, 2017, 2:51am UTC](https://discuss.elastic.co/t/using-filebeat-to-pass-log-files-to-logstash-error/72860/3 "2017-01-31T02:51:24Z")

</div>

I configured filebeat to output to localhost:5043 and my lostash.json has been configured to listen for input from beats on port 5043. I tried disabling my firewall but it still give me the same result.

---

<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:** [February 28, 2017, 2:51am UTC](https://discuss.elastic.co/t/using-filebeat-to-pass-log-files-to-logstash-error/72860/4 "2017-02-28T02:51:38Z")

</div>

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