# Facing issue with logstash command java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

**URL:** <https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709>\
**Category:** Logstash\
**Created:** [August 10, 2019, 11:45am UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709 "2019-08-10T11:45:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jainabhishek0406](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jainabhishek0406](https://discuss.elastic.co/u/jainabhishek0406)\
**Post date:** [August 10, 2019, 11:45am UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/1 "2019-08-10T11:45:35Z")

</div>

C:\Users\Abhishek\Desktop\elasticSearch\projectdata\logstash-6.4.3\bin\>logstash -f logstash-simple.conf  
Sending Logstash logs to C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logs which is now configured via log4j2.properties  
[2019-08-10T17:06:41,841][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<ArgumentError: Setting "logstash.command" hasn't been registered\>, :backtrace=\>["C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/settings.rb:36:in `get_setting'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/settings.rb:69:in`set\_value'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/settings.rb:88:in `block in merge'", "org/jruby/RubyHash.java:1343:in`each'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/settings.rb:88:in `merge'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/settings.rb:137:in`validate\_all'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/runner.rb:278:in `execute'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in`run'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/runner.rb:237:in `run'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in`run'", "C:\Users\Abhishek\Desktop\elasticSearch\projectdata\logstash-6.4.3\lib\bootstrap\environment.rb:73:in `'"]}  
[2019-08-10T17:06:41,875][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

---

<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:** [August 10, 2019, 12:32pm UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/2 "2019-08-10T12:32:46Z")

</div>

> [@jainabhishek0406](#):
>
> ArgumentError: Setting "logstash.command" hasn't been registered

I would guess that you have a line in logstash.yml that starts with

```
logstash.command:

```

There is no such configuration setting, so you should comment it out and retry.

---

<div class="post-metadata">

**Author:** ![jainabhishek0406](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jainabhishek0406](https://discuss.elastic.co/u/jainabhishek0406)\
**Post date:** [August 10, 2019, 1:18pm UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/3 "2019-08-10T13:18:42Z")

</div>

thnaks a lot. above error is fixed now.  
I am new to this, again I am facing another error.

PS C:\Users\Abhishek\Desktop\elasticSearch\projectdata\logstash-6.4.3\> .\bin\logstash.bat -f .\bin\logstash-sample.conf  
Sending Logstash logs to C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logs which is now configured via log4j2.properties  
[2019-08-10T18:46:11,042][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2019-08-10T18:46:12,093][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.4.3"}  
[2019-08-10T18:46:13,312][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, { at line 10, column 9 (byte 218) after output {\n elasticsearch { hosts =\> ["localhost:9200"] }\n index ", :backtrace=\>["C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/compiler.rb:49:in`compile\_graph'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in`map'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:149:in`initialize'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/pipeline.rb:22:in `initialize'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/pipeline.rb:90:in`initialize'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/pipeline\_action/create.rb:38:in `execute'", "C:/Users/Abhishek/Desktop/elasticSearch/projectdata/logstash-6.4.3/logstash-core/lib/logstash/agent.rb:309:in`block in converge\_state'"]}  
[2019-08-10T18:46:14,160][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
PS C:\Users\Abhishek\Desktop\elasticSearch\projectdata\logstash-6.4.3\>

---

<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:** [August 10, 2019, 1:48pm UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/4 "2019-08-10T13:48:54Z")

</div>

> [@jainabhishek0406](#):
>
> Expected one of #, { at line 10, column 9 (byte 218) after output {\n elasticsearch { hosts =\> ["localhost:9200"] }\n index "

Remove the } after ["localhost:9200"]. That ends the elasticsearch filter but you need the index option to be part of it.

---

<div class="post-metadata">

**Author:** ![jainabhishek0406](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jainabhishek0406](https://discuss.elastic.co/u/jainabhishek0406)\
**Post date:** [August 10, 2019, 2:16pm UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/5 "2019-08-10T14:16:32Z")

</div>

Thanks you very much!!!  
Issue is fixed now.

trying to use csv file now to parse and load.

---

<div class="post-metadata">

**Author:** ![jainabhishek0406](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jainabhishek0406](https://discuss.elastic.co/u/jainabhishek0406)\
**Post date:** [August 19, 2019, 9:04am UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/6 "2019-08-19T09:04:30Z")

</div>

facing issue and getting below error  
[2019-08-19T14:27:41,342][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"Java:  
:JavaLang::NoSuchMethodError", :message=\>"org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;", :backtrace=\>["org.logstash.execution.AbstractP  
ipelineExt.initialize(AbstractPipelineExt.java:124)", "org.logstash.execution.AbstractPipelineExt$INVOKER$i$3$0$initialize.call(AbstractPipelineExt$INVOKER$i$3$0$in  
itialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodThree.call(JavaMethod.java:1186)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMetho  
dN.call(JavaMethod.java:743)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:983)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSupe  
rSplatArgs(IRRuntimeHelpers.java:974)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "C\_3a\_.Users.abhishek12\_dot\_jain.Doc  
uments.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$initialize$0(C:/Users/abhishek1  
2.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/pipeline.rb:22)", "org.jruby.internal.runtime.methods.Compiled  
IRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.runtime.IRRuntimeHel  
pers.instanceSuper(IRRuntimeHelpers.java:983)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:974)", "org.jruby.ir.targets.Ins  
tanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "C\_3a\_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_  
6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$initialize$0(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logst  
ash-6.5.4/logstash-core/lib/logstash/pipeline.rb:90)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.run  
time.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)", "org.jruby.run  
time.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)", "org.jruby.RubyClass.  
newInstance(RubyClass.java:1022)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.ir.targets.InvokeSite.invoke(In  
vokeSite.java:145)", "C\_3a\_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logs  
tash.pipeline\_action.create.RUBY$block$execute$1(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logs  
tash/pipeline\_action/create.rb:42)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", "org.jruby.runtime.IRBlockBody.call(IRBlockBo  
dy.java:71)", "org.jruby.runtime.Block.call(Block.java:124)", "org.jruby.RubyProc.call(RubyProc.java:289)", "org.jruby.RubyProc.call19(RubyProc.java:273)", "org.jru  
by.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$call19.gen)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "C\_3a\_.Users.abhishek12\_do  
t\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$block$exclusive$1(C:/Users/abhi  
shek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb:92)", "org.jruby.runtime.CompiledIRBlockBody.yie  
ldDirect(CompiledIRBlockBody.java:156)", "org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:80)", "org.jruby.runtime.Block.yieldSpecific(Block.java:134)"  
, "org.jruby.ext.thread.Mutex.synchronize(Mutex.java:148)", "org.jruby.ext.thread.Mutex$INVOKER$i$0$0$synchronize.call(Mutex$INVOKER$i$0$0$synchronize.gen)", "org.j  
ruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:498)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "C\_3a\_.Users  
.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$method$exclusive$  
0(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb:92)", "C\_3a\_.Users.abhishek12\_dot  
_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$method$exclusive$0$ **VARARGS** (C  
:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb)", "org.jruby.internal.runtime.metho  
ds.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.targets.I  
nvokeSite.invoke(InvokeSite.java:145)", "C\_3a_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_  
minus\_core.lib.logstash.pipeline\_action.create.RUBY$method$execute$0(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/lo  
gstash-core/lib/logstash/pipeline\_action/create.rb:38)", "C\_3a\_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_  
5\_dot\_4.logstash\_minus\_core.lib.logstash.pipeline\_action.create.RUBY$method$execute$0$ **VARARGS** (C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Developme  
nt/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/pipeline\_action/create.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:7  
7)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "C\_3a\_.U  
sers.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$block$converg  
e\_state$2(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb:317)", "org.jruby.runtime  
.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71)", "org.jruby.runtime.Block.call(Block.java:  
124)", "org.jruby.RubyProc.call(RubyProc.java:289)", "org.jruby.RubyProc.call(RubyProc.java:246)",

---

<div class="post-metadata">

**Author:** ![jainabhishek0406](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jainabhishek0406](https://discuss.elastic.co/u/jainabhishek0406)\
**Post date:** [August 19, 2019, 9:04am UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/7 "2019-08-19T09:04:54Z")

</div>

conf I am using

input {  
file {  
path =\> ["/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/bin/cars.csv"]   
start\_position =\> "beginning"  
sincedb\_path =\> "nul"  
}  
}

filter {  
csv {  
separator =\> ","  
columns =\> ["maker","model","mileage","manufacture\_year","engine\_displacement","engine\_power","body\_type","color\_slug","stk\_year","transmission","door\_count","seat\_count","fuel\_type","date\_created","date\_last\_seen","price\_eur"]  
}  
mutate {convert =\> ["mileage","integer"]}  
mutate {convert =\> ["price\_eur","float"]}  
mutate {convert =\> ["engine\_power","integer"]}  
mutate {convert =\> ["door\_count","integer"]}  
mutate {convert =\> ["seat\_count","integer"]}  
}

output {  
elasticsearch { hosts =\> ["localhost:9200"]  
index =\> "secondindex"  
document\_type =\> "sold\_cars"  
}  
stdout {codec =\> rubydebug}  
}

---

<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:** [September 16, 2019, 9:04am UTC](https://discuss.elastic.co/t/facing-issue-with-logstash-command-java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/194709/8 "2019-09-16T09:04:55Z")

</div>

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