# Logstash cnfiguration error

**URL:** https://discuss.elastic.co/t/logstash-cnfiguration-error/43083
**Category:** Logstash
**Created:** [March 1, 2016, 7:29am UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083 "2016-03-01T07:29:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bishaka](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bishaka](https://discuss.elastic.co/u/bishaka)
#### Post date: [March 1, 2016, 7:29am UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083/1 "2016-03-01T07:29:07Z")

</div>

So I have both elasticsearch and kibana both up and running on a linux staging server . Now i am trying to configure logstash ans run it

I wrote a logstash-simple.conf file put it in the bin folder

when i try to run logstash using the command

./logstash -f logstash-simple.conf

it gives me the error...Could not find any executable java binary. Please install java in your PATH or set JAVA\_HOME."

I have java up and running perfectly when i check java -version and which java command...i am not sure whats going on here..

---

<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 1, 2016, 7:36am UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083/2 "2016-03-01T07:36:05Z")

</div>

Didn't you have the same problem here - [Installing elasticsearch logstash and kibana on a linux server error](https://discuss.elastic.co/t/installing-elasticsearch-logstash-and-kibana-on-a-linux-server-error/42931)

---

<div class="post-metadata">

### Author: ![bishaka](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bishaka](https://discuss.elastic.co/u/bishaka)
#### Post date: [March 1, 2016, 7:46am UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083/3 "2016-03-01T07:46:38Z")

</div>

Yes, but it's already fixed though. I will try moving the contents to a different folder..

---

<div class="post-metadata">

### Author: ![bishaka](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bishaka](https://discuss.elastic.co/u/bishaka)
#### Post date: [March 1, 2016, 7:59am UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083/4 "2016-03-01T07:59:53Z")

</div>

It works now!

---

<div class="post-metadata">

### Author: ![bishaka](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bishaka](https://discuss.elastic.co/u/bishaka)
#### Post date: [March 1, 2016, 10:37pm UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083/5 "2016-03-01T22:37:54Z")

</div>

I used the following command to fix it:  
export JAVACMD=`which java`

---

<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:08am UTC](https://discuss.elastic.co/t/logstash-cnfiguration-error/43083/6 "2017-07-06T05:08:59Z")

</div>


