# Logstash executable accepts filebeat data, but logstash service not working with same conf files

**URL:** <https://discuss.elastic.co/t/logstash-executable-accepts-filebeat-data-but-logstash-service-not-working-with-same-conf-files/89956>\
**Category:** Logstash\
**Created:** [June 19, 2017, 3:28pm UTC](https://discuss.elastic.co/t/logstash-executable-accepts-filebeat-data-but-logstash-service-not-working-with-same-conf-files/89956 "2017-06-19T15:28:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garrett\_Huff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/garrett_huff/32/18083_2.png) [@Garrett\_Huff](https://discuss.elastic.co/u/Garrett_Huff)\
**Post date:** [June 19, 2017, 3:28pm UTC](https://discuss.elastic.co/t/logstash-executable-accepts-filebeat-data-but-logstash-service-not-working-with-same-conf-files/89956/1 "2017-06-19T15:28:12Z")

</div>

Hello everyone, I am running the ELK stack in openstack and am having a bit of trouble getting the daemon to work properly. For some reason, if I run the executable version using the command ./bin/logstash -f config/beat2.conf I get the correct result from my filebeat server sending over logs. However, when I run the logstash daemon using service logstash start or with systemctl, my filebeat server will give me the connection refused error. Since this is a cloud server I have check the entropy issue by install haveged on the logstash server. Im wondering if the logstash daemon is not reading my conf file correctly, however I have not found any logs that point me towards the error. Please let me know if you can help, thanks!  
Edit: I also just realized that the logstash service is not actually listening on the correct port, even though the systemctl says that logstash is active.

---

<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 17, 2017, 3:28pm UTC](https://discuss.elastic.co/t/logstash-executable-accepts-filebeat-data-but-logstash-service-not-working-with-same-conf-files/89956/2 "2017-07-17T15:28:36Z")

</div>

Closed on July 17, 2017, 3:28pm UTC

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