# java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

**URL:** <https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918>\
**Category:** Logstash\
**Created:** [September 25, 2020, 7:19am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918 "2020-09-25T07:19:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajan\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajan_gupta/32/76203_2.png) [@Rajan\_Gupta](https://discuss.elastic.co/u/Rajan_Gupta)\
**Post date:** [September 25, 2020, 7:19am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918/1 "2020-09-25T07:19:46Z")

</div>

Hi There,

Got Stuck from last three days.

I m getting this error while starting the logstash. Could anyone help me on this.Stack trace is defined below :-  
`Sending Logstash logs to D:/Elasticsearch/logstash-7.9.1/logs which is now configured via log4j2.properties [2020-09-25T12:34:27,176][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"7.9.1", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 25.201-b09 on 1.8.0_201-b09 +indy +jit [mswin32-x86_64]"} [2020-09-25T12:34:27,629][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified [2020-09-25T12:34:29,599][ERROR][logstash.agent] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [A-Za-z0-9_-], [\\t\\r\\n], \"#\", \"=>\" at line 11, column 20 (byte 527) after input {\n jdbc {\n jdbc_driver_library => \"D:\\\\Elastic - search\\\\mysql-connector-java-8.0.21\\\\mysql-connector-java-8.0.21.jar\"\n jdbc_driver_class => \"com.mysql.jdbc.Driver\"\n jdbc_connection_string => \"\"\n jdbc_user => \n jdbc_password => \n tracking_column", :backtrace=>["D:/Elasticsearch/logstash-7.9.1/logstash-core/lib/logstash/compiler.rb:32:in `compile\_imperative'", "org/logstash/execution/AbstractPipelineExt.java:183:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:69:in `initialize'", "D:/Elasticsearch/logstash-7.9.1/logstash-core/lib/logstash/java\_pipeline.rb:44:in `initialize'", "D:/Elasticsearch/logstash-7.9.1/logstash-core/lib/logstash/pipeline_action/create.rb:52:in `execute'", "D:/Elasticsearch/logstash-7.9.1/logstash-core/lib/logstash/agent.rb:357:in `block in converge_state'"]} [2020-09-25T12:34:30,211][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600} [2020-09-25T12:34:34,950][INFO][logstash.runner] Logstash shut down. [2020-09-25T12:34:35,006][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit`.

Operating System: Window  
Startup command : logstash.bat -f logstash-sample.conf

Configuration file sample is below:

```
# Sample Logstash configuration for creating a simple

```

# Beats -\> Logstash -\> Elasticsearch pipeline.

input {  
jdbc {  
jdbc\_driver\_library =\> "D:\Elastic - search\mysql-connector-java-8.0.21\mysql-connector-java-8.0.21.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
jdbc\_connection\_string =\>   
jdbc\_user =\>   
jdbc\_password =\>   
tracking\_column¹ =\>   
use\_column\_value²=\>true  
statement =\> "";  
schedule³ =\> " \* \* \* \* \* \*"  
}  
}

output {  
elasticsearch {  
document\_id⁴=\> "%{id}"  
document\_type =\> "doc"  
index =\> "test"  
hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
}  
stdout{  
codec =\> rubydebug  
}  
}

Thanks for the help in advance:!

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [September 25, 2020, 9:05am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918/2 "2020-09-25T09:05:20Z")

</div>

Can you please respect syntax formatting using ```

Your configuration is unreadable and keeping us from debugging what's going wrong.

Please read guidelines for posting.

---

<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:** [September 25, 2020, 2:00pm UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918/3 "2020-09-25T14:00:11Z")

</div>

> [@Rajan\_Gupta](#):
>
> jdbc\_connection\_string =\>  
> jdbc\_user =\>  
> jdbc\_password =\>

You need to fill in the values for these.

---

<div class="post-metadata">

**Author:** ![Rajan\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajan_gupta/32/76203_2.png) [@Rajan\_Gupta](https://discuss.elastic.co/u/Rajan_Gupta)\
**Post date:** [September 29, 2020, 4:21am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918/4 "2020-09-29T04:21:41Z")

</div>

@grumo35 thanks for replying and i will check this mistake and i will correct it.

---

<div class="post-metadata">

**Author:** ![Rajan\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajan_gupta/32/76203_2.png) [@Rajan\_Gupta](https://discuss.elastic.co/u/Rajan_Gupta)\
**Post date:** [September 29, 2020, 4:22am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918/5 "2020-09-29T04:22:39Z")

</div>

@Badger thanks for replying. i just use the local DB for testing. It is connecting.

---

<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:** [October 27, 2020, 4:23am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-logstash-stopped-processing-because-of-an-error-systemexit-exit/249918/6 "2020-10-27T04:23:00Z")

</div>

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