# Filebeat throws error while sending the logs to logstash

**URL:** <https://discuss.elastic.co/t/filebeat-throws-error-while-sending-the-logs-to-logstash/114724>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 9, 2018, 3:02pm UTC](https://discuss.elastic.co/t/filebeat-throws-error-while-sending-the-logs-to-logstash/114724 "2018-01-09T15:02:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravbhutani30](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gauravbhutani30](https://discuss.elastic.co/u/gauravbhutani30)\
**Post date:** [January 9, 2018, 3:02pm UTC](https://discuss.elastic.co/t/filebeat-throws-error-while-sending-the-logs-to-logstash/114724/1 "2018-01-09T15:02:42Z")

</div>

Hi,

I am trying to send logs from filebeat \> logstash and getting the following error:

ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: connectex: No connection could be made because the target machine actively refused it.

I can see the logs getting pulled in by filebeat, but when it tries to make connection to port 5044, it fails.

On the logstash side i can see this:

Cannot create pipeline {:reason=\>"Couldn't find any input plugin named 'beats'. Are you sure this is correct? Trying to load the beats input plugin resulted in this error: Problems loading the requested plugin named beats of type input. Error: RuntimeError \n\n\tyou might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command no such file to load -- io/netty/netty-tcnative-boringssl-static/1.1.33.Fork23/netty-tcnative-boringssl-static-1.1.33.Fork23 (LoadError)"}

Filebeat config:

- input\_type: log  
paths:
  - C:\Users\Desktop\study\ELK\test.log

output.logstash:  
hosts: ["localhost:5044"]

Logstash Config:

input {  
beats {  
port =\> "5044"  
}  
}  
output {  
elasticsearch {  
hosts =\> "localhost:9200"  
}  
stdout { codec =\> dots{} }  
}

I am using Java 8 and JAVA\_HOME is also set. ELK version is 5.6.3, also tested in 5.0.1  
This configuration was working perfectly fine earlier, but suddenly stopped working.  
Even now, if i change the out to elasticsearch, it works fine, but not with logstash.

Any help is appreciated.

Thanks in advance!

---

<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 6, 2018, 3:02pm UTC](https://discuss.elastic.co/t/filebeat-throws-error-while-sending-the-logs-to-logstash/114724/2 "2018-02-06T15:02:43Z")

</div>

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