# "Your settings are invalid. Setting "" doesnt exist" error during setup

**URL:** https://discuss.elastic.co/t/your-settings-are-invalid-setting-doesnt-exist-error-during-setup/308751
**Category:** Logstash
**Created:** [July 3, 2022, 4:18pm UTC](https://discuss.elastic.co/t/your-settings-are-invalid-setting-doesnt-exist-error-during-setup/308751 "2022-07-03T16:18:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dsilvera](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@dsilvera](https://discuss.elastic.co/u/dsilvera)
#### Post date: [July 3, 2022, 4:18pm UTC](https://discuss.elastic.co/t/your-settings-are-invalid-setting-doesnt-exist-error-during-setup/308751/1 "2022-07-03T16:18:54Z")

</div>

Setting up ELK 8.3.1 on Windows 10 PC and got Elastic Search and Kabana up and running. Reached to setting up logstash, entered the following command:

> .\bin\logstash.bat -e "input { stdin { } } output { stdout {} }"

from the docs [Stashing Your First Event | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/first-event.html)  
and got the following error:

```auto
c:\elasticstack\logstash\bin>logstash.bat -e "input { stdin { } } output { stdout {} }"
"Using bundled JDK: c:\elasticstack\logstash\jdk\bin\java.exe"
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to c:/elasticstack/logstash/logs which is now configured via log4j2.properties
[2022-07-03T10:41:46,249][INFO][logstash.runner] Log4j configuration path used is: c:\elasticstack\logstash\config\log4j2.properties
[2022-07-03T10:41:46,254][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"8.3.1", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.15+10 on 11.0.15+10 +indy +jit [mswin32-x86_64]"}
[2022-07-03T10:41:46,255][INFO][logstash.runner] JVM bootstrap flags: [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djruby.compile.invokedynamic=true, -Djruby.jit.threshold=0, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true, -Djruby.regexp.interruptible=true, -Djdk.io.File.enableADS=true, --add-opens=java.base/java.security=ALL-UNNAMED, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/java.nio.channels=ALL-UNNAMED, --add-opens=java.base/sun.nio.ch=ALL-UNNAMED, --add-opens=java.management/sun.management=ALL-UNNAMED]
Your settings are invalid. Reason: Setting "" doesn't exist. Please check if you haven't made a typo.
[2022-07-03T10:41:46,326][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby.jar:?]
        at c_3a_.elasticstack.logstash.lib.bootstrap.environment.<main>(c:\elasticstack\logstash\lib\bootstrap\environment.rb:91) ~[?:?]

```

It looks like an easy fix. Maybe it can't find some java settings? But I'm new at this.  
Appreciate any help.

---

<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: [July 3, 2022, 5:09pm UTC](https://discuss.elastic.co/t/your-settings-are-invalid-setting-doesnt-exist-error-during-setup/308751/2 "2022-07-03T17:09:40Z")

</div>

It's not about the Java settings. The JVM is up and running when this error is [logged](https://github.com/elastic/logstash/blob/120648abe4ddbe824048204babeb9ebefd3492aa/logstash-core/lib/logstash/settings.rb#L105). Setting --log.level DEBUG might help narrow down what it is doing.

---

<div class="post-metadata">

### Author: ![dsilvera](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@dsilvera](https://discuss.elastic.co/u/dsilvera)
#### Post date: [July 3, 2022, 6:04pm UTC](https://discuss.elastic.co/t/your-settings-are-invalid-setting-doesnt-exist-error-during-setup/308751/3 "2022-07-03T18:04:00Z")

</div>

Well, this is extremely weird. Ran the following command:

> [@dsilvera](#):
>
> .\bin\logstash.bat -e "input { stdin { } } output { stdout {} }" --log.level "debug"

And it produced a lot of debug info, but kept outputting repetitive debug info. As if logstash was actually running.

So I stopped it with Ctrl+C and ran the command without debug on, and it worked fine. 😵‍💫 😲

I don't know what happened but it works now.  
Thanks @Badger

---

<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 31, 2022, 6:04pm UTC](https://discuss.elastic.co/t/your-settings-are-invalid-setting-doesnt-exist-error-during-setup/308751/4 "2022-07-31T18:04:20Z")

</div>

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