# Metricbeat Not Outputting to Logstash

**URL:** <https://discuss.elastic.co/t/metricbeat-not-outputting-to-logstash/236412>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 9, 2020, 7:48pm UTC](https://discuss.elastic.co/t/metricbeat-not-outputting-to-logstash/236412 "2020-06-09T19:48:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uklipse](https://avatars.discourse-cdn.com/v4/letter/u/cdc98d/32.png) [@uklipse](https://discuss.elastic.co/u/uklipse)\
**Post date:** [June 9, 2020, 7:48pm UTC](https://discuss.elastic.co/t/metricbeat-not-outputting-to-logstash/236412/1 "2020-06-09T19:48:32Z")

</div>

I have Metricbeat installed on a new server and can't get it to output to Logstash. I can configure it to output directly to Elasticsearch. I even can get Filebeat running on the same server to output to Logstash but not metricbeat. When I change the output to logstash, the service won't start. Below is the my logstash output section. I have commented out the elasticsearch output and also tried changing localhost to the server's IP and 127.0.0.1.

```
output.logstash:
# The Logstash hosts
 hosts: ["localhost:5044"]
```

---

<div class="post-metadata">

**Author:** ![uklipse](https://avatars.discourse-cdn.com/v4/letter/u/cdc98d/32.png) [@uklipse](https://discuss.elastic.co/u/uklipse)\
**Post date:** [June 10, 2020, 12:20am UTC](https://discuss.elastic.co/t/metricbeat-not-outputting-to-logstash/236412/2 "2020-06-10T00:20:50Z")

</div>

Not sure how the filebeat was working but the issue was my logstash input file had quotes around the port =\> "5044" and removing them opened the port and allowed both to connect.

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [June 17, 2020, 8:44am UTC](https://discuss.elastic.co/t/metricbeat-not-outputting-to-logstash/236412/3 "2020-06-17T08:44:01Z")

</div>

If you have this kind of issues in the future, try to start the beat with `-e "*"` to see more log output. There you would have seen that there was an error connecting.

I'm glad that you found the solution 🙂

---

<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:** [July 15, 2020, 10:44am UTC](https://discuss.elastic.co/t/metricbeat-not-outputting-to-logstash/236412/4 "2020-07-15T10:44:01Z")

</div>

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