# \[Error\] pipeline/output.go:74 Failed to connect: dial tcp

**URL:** https://discuss.elastic.co/t/error-pipeline-output-go-74-failed-to-connect-dial-tcp/162222
**Category:** Beats
**Created:** [December 27, 2018, 10:56am UTC](https://discuss.elastic.co/t/error-pipeline-output-go-74-failed-to-connect-dial-tcp/162222 "2018-12-27T10:56:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Waranon](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@Waranon](https://discuss.elastic.co/u/Waranon)
#### Post date: [December 27, 2018, 10:56am UTC](https://discuss.elastic.co/t/error-pipeline-output-go-74-failed-to-connect-dial-tcp/162222/1 "2018-12-27T10:56:28Z")

</div>

I got Failed to connect: dial tcp x.x.x.x:5044: getsockopt: connection refused

**/etc/filebeat/filebeat.yml**  
filebeat.prospectors:

- input\_type: log  
paths:
  - /var/log/cms/\*.log

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

**Could you suggest me to fix it?**

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [December 27, 2018, 12:56pm UTC](https://discuss.elastic.co/t/error-pipeline-output-go-74-failed-to-connect-dial-tcp/162222/2 "2018-12-27T12:56:05Z")

</div>

Is Logstash running?

Is the host Logstash runs on reachable?

Have you configured the Beats input with port 5044 in Logstash?

Do you have a firewall blocking port 5044?

---

<div class="post-metadata">

### Author: ![Waranon](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@Waranon](https://discuss.elastic.co/u/Waranon)
#### Post date: [January 5, 2019, 1:38pm UTC](https://discuss.elastic.co/t/error-pipeline-output-go-74-failed-to-connect-dial-tcp/162222/3 "2019-01-05T13:38:23Z")

</div>

Now I have fixed it but update to latest one.

---

<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 2, 2019, 3:38pm UTC](https://discuss.elastic.co/t/error-pipeline-output-go-74-failed-to-connect-dial-tcp/162222/4 "2019-02-02T15:38:23Z")

</div>

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