# Logstash isn't starting

**URL:** https://discuss.elastic.co/t/logstash-isnt-starting/45039
**Category:** Logstash
**Created:** [March 21, 2016, 8:04pm UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039 "2016-03-21T20:04:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pierrejnelson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierrejnelson/32/8627_2.png) [@pierrejnelson](https://discuss.elastic.co/u/pierrejnelson)
#### Post date: [March 21, 2016, 8:04pm UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039/1 "2016-03-21T20:04:56Z")

</div>

Hello all,

Pretty new to logstash but I fhave finally gotten my config to check out as ok with no issues or errors. Problem now is that logstash will not start. Below you will see that I check the config and then start it but when I look at the status it says it is not running and when I use grep to find the process it is not there. Any and all help is appreciated as to why logstash says it is starting but doesn't.

corp-netlog-live01:/etc/logstash/conf.d # /data/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf -t  
Configuration OK  
corp-netlog-live01:/etc/logstash/conf.d # service logstash start  
logstash started.  
corp-netlog-live01:/etc/logstash/conf.d # service logstash status  
logstash is not running  
corp-netlog-live01:/etc/logstash/conf.d # ps -ef | grep logstash  
root 110572 109202 0 15:02 pts/5 00:00:00 grep logstash  
corp-netlog-live01:/etc/logstash/conf.d # ps -ef | grep -i logstash  
root 110576 109202 0 15:05 pts/5 00:00:00 grep -i logstash

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 21, 2016, 8:06pm UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039/2 "2016-03-21T20:06:24Z")

</div>

What can you see in the files in `/var/log/logstash`?

---

<div class="post-metadata">

### Author: ![pierrejnelson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierrejnelson/32/8627_2.png) [@pierrejnelson](https://discuss.elastic.co/u/pierrejnelson)
#### Post date: [March 21, 2016, 8:11pm UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039/3 "2016-03-21T20:11:19Z")

</div>

Interesting informaiton

sh: line 3: /opt/logstash/bin/logstash: No such file or directory  
sh: line 3: exec: /opt/logstash/bin/logstash: cannot execute: No such file or directory

Not sure why it doesn't thing something is not there. I will need to fix that on the logstash script I guess or create it.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 21, 2016, 8:17pm UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039/4 "2016-03-21T20:17:25Z")

</div>

How did you install LS?

---

<div class="post-metadata">

### Author: ![pierrejnelson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierrejnelson/32/8627_2.png) [@pierrejnelson](https://discuss.elastic.co/u/pierrejnelson)
#### Post date: [March 21, 2016, 8:20pm UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039/5 "2016-03-21T20:20:35Z")

</div>

I changed the directory where it starts and logs, I have fixed that int he init.d script and it is up and running now. Thanks for your quick response.

corp-netlog-live01:/var/log/logstash # ps -ef | grep -i logstash  
logstash 110695 1 99 15:19 pts/5 00:00:08 /usr/bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/var/lib/logstash -Xmx1g -Xss2048k -Djffi.boot.library.path=/data/logstash/vendor/jruby/lib/jni -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/var/lib/logstash -XX:HeapDumpPath=/data/logstash/heapdump.hprof -Xbootclasspath/a:/data/logstash/vendor/jruby/lib/jruby.jar -classpath : -Djruby.home=/data/logstash/vendor/jruby -Djruby.lib=/data/logstash/vendor/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main --1.9 /data/logstash/lib/bootstrap/environment.rb logstash/runner.rb agent -f /etc/logstash/conf.d -l /var/log/logstash/logstash.log  
root 110752 109202 0 15:19 pts/5 00:00:00 grep -i logstash

---

<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 6, 2017, 5:06am UTC](https://discuss.elastic.co/t/logstash-isnt-starting/45039/6 "2017-07-06T05:06:02Z")

</div>


