# Can't not bind listen port 5140 to logstash ubuntu 18.04

**URL:** <https://discuss.elastic.co/t/cant-not-bind-listen-port-5140-to-logstash-ubuntu-18-04/202428>\
**Category:** Logstash\
**Created:** [October 5, 2019, 3:32pm UTC](https://discuss.elastic.co/t/cant-not-bind-listen-port-5140-to-logstash-ubuntu-18-04/202428 "2019-10-05T15:32:06Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![Bubba\_Shakes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bubba_shakes/32/55276_2.png) [@Bubba\_Shakes](https://discuss.elastic.co/u/Bubba_Shakes)\
**Post date:** [October 6, 2019, 4:17pm UTC](https://discuss.elastic.co/t/cant-not-bind-listen-port-5140-to-logstash-ubuntu-18-04/202428/29 "2019-10-06T16:17:14Z")

</div>

This is the config file logstash is failing on:

**Update: Following this thread I was able to address my issue.**

> [@Having issues with my PF sense configs](https://discuss.elastic.co/t/having-issues-with-my-pf-sense-configs/202438):
>
> I'm having issues with getting my PF sense logs to parse properly. The current result is that everything is dropped and I am uncertain why. I am using the config files from this github: [https://github.com/a3ilson/pfelk](https://github.com/a3ilson/pfelk) I get this error: [2019-10-06T00:16:31,031][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.4.0"} [2019-10-06T00:16:32,625][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::C…

---

_[View the full topic](https://discuss.elastic.co/t/cant-not-bind-listen-port-5140-to-logstash-ubuntu-18-04/202428)._
