# Logstash Startup issue

**URL:** https://discuss.elastic.co/t/logstash-startup-issue/307639
**Category:** Logstash
**Created:** [June 20, 2022, 11:19am UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639 "2022-06-20T11:19:00Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![shivani\_chittauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivani_chittauri/32/107271_2.png) [@shivani\_chittauri](https://discuss.elastic.co/u/shivani_chittauri)
#### Post date: [June 20, 2022, 11:19am UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/1 "2022-06-20T11:19:00Z")

</div>

unable to start logstash, while Elasticsearch and kibana both are up and running.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/3/83429f0a16b38087db78578cc443d0e05698f9fe.jpeg)

**logtstash.conf looks like**  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b96ccae937aa2cdc67e383f2af46653bc0b533b2.png)

no change on any other file  
logstash.yml has everything commented except "pipeline.ordered: auto"

---

<div class="post-metadata">

### Author: ![sudhagar\_ramesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhagar_ramesh/32/105673_2.png) [@sudhagar\_ramesh](https://discuss.elastic.co/u/sudhagar_ramesh)
#### Post date: [June 20, 2022, 1:05pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/2 "2022-06-20T13:05:56Z")

</div>

Hello @shivani_chittauri

Welcome to Elastic Community 🙂 !!!

There is small error in your config code, in output plugin of **Elasticsearch** code block should be closed first then should proceed on to the **stdout** code block like the below

```auto
input{
stdin{}
}

output
{
elasticsearch{
hosts => ["http://localhost:9200"]
user => "<Your-es-username>"
password => "<Your-es-pwd>"
}

stdout
{
codec => rubydebug
}

}

```

The relative filepath should be mentioned in quotes.

Try like the below

`.\logstash.bat -f "..\config\logstash.conf"`

Keep Posted!!! Thanks!!! 🙂

---

<div class="post-metadata">

### Author: ![shivani\_chittauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivani_chittauri/32/107271_2.png) [@shivani\_chittauri](https://discuss.elastic.co/u/shivani_chittauri)
#### Post date: [June 20, 2022, 3:53pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/3 "2022-06-20T15:53:45Z")

</div>

i am not using user and password for ES.  
changed the logstash.conf and also tried  
.\logstash.bat -f "..\config\logstash.conf", but giving same issue

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/5/753c017f05a6763d89c194037721425b939fb9a1.png)

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 20, 2022, 4:11pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/4 "2022-06-20T16:11:08Z")

</div>

logstash should have logged an error about the configuration to the console. I would suggest editing bin/logstash.bat and changing `@echo off` to `@echo on`. That will let you make sure it is taking the right path through the script.

---

<div class="post-metadata">

### Author: ![shivani\_chittauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivani_chittauri/32/107271_2.png) [@shivani\_chittauri](https://discuss.elastic.co/u/shivani_chittauri)
#### Post date: [June 20, 2022, 4:46pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/5 "2022-06-20T16:46:44Z")

</div>

> [@Badger](#):
>
> ave logged an error about the configuration to the console. I would su

got this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f86397cf400704672ce2d4644b2983d49ab79bf3.png)

---

<div class="post-metadata">

### Author: ![shivani\_chittauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivani_chittauri/32/107271_2.png) [@shivani\_chittauri](https://discuss.elastic.co/u/shivani_chittauri)
#### Post date: [June 20, 2022, 4:48pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/6 "2022-06-20T16:48:04Z")

</div>

i am not using user and password for ES.  
changed the logstash.conf and also tried  
.\logstash.bat -f "..\config\logstash.conf", but giving same issue

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/5/753c017f05a6763d89c194037721425b939fb9a1.png)

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 20, 2022, 5:45pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/7 "2022-06-20T17:45:24Z")

</div>

OK, now edit setup.bat and make the same change to `@echo on`.

---

<div class="post-metadata">

### Author: ![shivani\_chittauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivani_chittauri/32/107271_2.png) [@shivani\_chittauri](https://discuss.elastic.co/u/shivani_chittauri)
#### Post date: [June 20, 2022, 5:50pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/8 "2022-06-20T17:50:32Z")

</div>

it resolved. I was having JAVA\_OPTS set up as an environment variable, though it was giving warning, but actually was error, so i replaced JAVA\_OPTS with LS\_JAVA\_OPTS

---

<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 18, 2022, 5:50pm UTC](https://discuss.elastic.co/t/logstash-startup-issue/307639/9 "2022-07-18T17:50:35Z")

</div>

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