title: Error : Logstash stopped processing because of an error: (SystemExit) exit
body: <p>I am trying to copy SQL Server data to Elasticsearch using LogStash implementing my own configuration script named  <strong>sql.conf</strong></p>
  <p>i got the error below :</p>
  <pre><code>WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
  Java HotSpot(TM) 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:/Program Files/Elastic/logstash-7.11.1/logs which is now configured via log4j2.properties
  [2021-02-25T14:57:05,899][INFO ][logstash.runner          ] Starting Logstash {&quot;logstash.version&quot;=&gt;&quot;7.11.1&quot;, &quot;jruby.version&quot;=&gt;&quot;jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 11.0.10+8-LTS-162 on 11.0.10+8-LTS-162 +indy +jit [mswin32-x86_64]&quot;}
  [2021-02-25T14:57:06,132][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
  [2021-02-25T14:57:06,858][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=&gt;&quot;C:/Program Files/Elastic/logstash-7.11.1/sql.conf&quot;}
  [2021-02-25T14:57:07,136][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
  [2021-02-25T14:57:07,747][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=&gt;9600}
  [2021-02-25T14:57:12,678][INFO ][logstash.runner          ] Logstash shut down.
  [2021-02-25T14:57:12,968][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-complete-9.2.13.0.jar:?]
          at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]
          at C_3a_.Program_20_Files.Elastic.logstash_minus_7_dot_11_dot_1.lib.bootstrap.environment.&lt;main&gt;(C:\Program Files\Elastic\logstash-7.11.1\lib\bootstrap\environment.rb:89) ~[?:?]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/CfPc1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CfPc1.png" alt="enter image description here" /></a></p>
  <p>Here is my <strong>sql.conf</strong></p>
  <pre><code>input {
    jdbc {
      jdbc_connection_string =&gt; &quot;jdbc:sqlserver://localhost;databaseName=XXX;integratedSecurity=true;&quot;
      jdbc_driver_class =&gt; &quot;com.microsoft.sqlserver.jdbc.SQLServerDriver&quot;
      jdbc_user =&gt; &quot;XXX&quot;
  
      statement =&gt; &quot;SELECT * FROM XXX&quot;
    }
  }
  
  output {
    elasticsearch {
      hosts =&gt; [&quot;localhost:9200&quot;]
      index =&gt; &quot;cs_XXX&quot;
    }
  }
  </code></pre>
  <p>here is the <strong>logstash.conf</strong></p>
  <pre><code>input {
    beats {
     port =&gt; 5044
     type =&gt; &quot;log&quot;
    }
  }
  
  output {
    elasticsearch {
      hosts =&gt; &quot;localhost:9200&quot;
      manage_template =&gt; false
      index =&gt; &quot;%{[@metadata][beat]}-%{+yyyy.ww}&quot;
      document_type =&gt; &quot;%{[@metadata][type]}&quot;
    }
  }
  </code></pre>
  <p><strong>cmd line used:</strong></p>
  <pre><code>bin\logstash -f sql.conf
  </code></pre>
  <p>or</p>
  <pre><code>bin\logstash
  </code></pre>
  <p>the both of cmd gives the same error</p>