# Logstash having exception while starting

**URL:** <https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173>\
**Category:** Logstash\
**Created:** [December 15, 2016, 2:33pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173 "2016-12-15T14:33:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [December 15, 2016, 2:33pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/1 "2016-12-15T14:33:47Z")

</div>

I am running in V5.0.1

It looks like my logstash having errors and exceptions when booting.

Below the link to log:

`https://gist.github.com/ssasporta/4da3e467a5d95381f14476b204a923af`

Thanks  
Sharon.

---

<div class="post-metadata">

**Author:** ![valugi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valugi/32/13693_2.png) [@valugi](https://discuss.elastic.co/u/valugi)\
**Post date:** [December 15, 2016, 3:39pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/2 "2016-12-15T15:39:51Z")

</div>

Seems that your port 5000 is already in use. Try changing it from 5000 to 5044 or another free port. Also check that other logstash instances are not running already and have been closed properly (using ps).

---

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [December 15, 2016, 3:41pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/3 "2016-12-15T15:41:55Z")

</div>

I see it is also mentioned in the log the filebeat, on which I have issues to start it too. It looks like the problems are connected.  
Am I right?

---

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [December 15, 2016, 3:47pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/4 "2016-12-15T15:47:00Z")

</div>

So then I need also to change in the filebeat.yml the port, to 5044 too, right?

output.logstash:

# The Logstash hosts

#hosts: ["localhost:5000"]  
hosts: ["0.0.0.0:5000"]

---

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [December 15, 2016, 3:50pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/5 "2016-12-15T15:50:44Z")

</div>

The Logstash is OK now, but still having issue with starting the filebeat.

---

<div class="post-metadata">

**Author:** ![valugi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valugi/32/13693_2.png) [@valugi](https://discuss.elastic.co/u/valugi)\
**Post date:** [December 16, 2016, 7:57am UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/6 "2016-12-16T07:57:18Z")

</div>

take a look at your Filebeat log (usually in /var/log/filebeat/filebeat) to see what is wrong. maybe restart the service

---

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [December 16, 2016, 12:33pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/7 "2016-12-16T12:33:29Z")

</div>

There were issues in the yml file.

---

<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:** [January 13, 2017, 12:33pm UTC](https://discuss.elastic.co/t/logstash-having-exception-while-starting/69173/8 "2017-01-13T12:33:50Z")

</div>

Closed on January 13, 2017, 12:33pm UTC

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