# Error starting logstash

**URL:** <https://discuss.elastic.co/t/error-starting-logstash/99066>\
**Category:** Logstash\
**Created:** [August 31, 2017, 10:41pm UTC](https://discuss.elastic.co/t/error-starting-logstash/99066 "2017-08-31T22:41:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk\_of\_the\_forest](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@elk\_of\_the\_forest](https://discuss.elastic.co/u/elk_of_the_forest)\
**Post date:** [August 31, 2017, 10:41pm UTC](https://discuss.elastic.co/t/error-starting-logstash/99066/1 "2017-08-31T22:41:41Z")

</div>

Im using this command to start logstash:

$ bin/logstash -f logstash-config/02-beats-input.conf -f logstash-config/10-syslog-filter.conf -f logstash-config/30-elasticsearch-output.conf

Logstash gives this error.

NameError: cannot link Java class org.apache.logging.log4j.Level JVMCFRE003 bad major version; class=org/apache/logging/log4j/Level, offset=6  
get\_proxy\_or\_package\_under\_package at org/jruby/javasupport/JavaUtilities.java:54  
method\_missing at file:/data/sw/logstash-5.5.2/vendor/jruby/lib/jruby.jar!/jruby/java/java\_package\_module\_template.rb:14  
Logging at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/logging/logger.rb:6  
LogStash at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/logging/logger.rb:5  
(root) at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/logging/logger.rb:4  
require at org/jruby/RubyKernel.java:1040  
(root) at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/util/loggable.rb:1  
require at org/jruby/RubyKernel.java:1040  
(root) at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/util/loggable.rb:2  
require at org/jruby/RubyKernel.java:1040  
(root) at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/settings.rb:1  
require at org/jruby/RubyKernel.java:1040  
(root) at /data/sw/logstash-5.5.2/logstash-core/lib/logstash/settings.rb:2  
require at org/jruby/RubyKernel.java:1040  
(root) at /data/sw/logstash-5.5.2/lib/bootstrap/environment.rb:70

Can you guys please help? Thanks.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [August 31, 2017, 11:45pm UTC](https://discuss.elastic.co/t/error-starting-logstash/99066/2 "2017-08-31T23:45:11Z")

</div>

Can you please run `java -version` and post the output here?

---

<div class="post-metadata">

**Author:** ![elk\_of\_the\_forest](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@elk\_of\_the\_forest](https://discuss.elastic.co/u/elk_of_the_forest)\
**Post date:** [September 1, 2017, 12:47am UTC](https://discuss.elastic.co/t/error-starting-logstash/99066/3 "2017-09-01T00:47:25Z")

</div>

Thanks I fixed the problem. The Java version was 1.6, fixed the JAVA\_HOME & PATH variables and got it working.

---

<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 29, 2017, 12:47am UTC](https://discuss.elastic.co/t/error-starting-logstash/99066/4 "2017-09-29T00:47:47Z")

</div>

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