Error while running logstash in linux

Hi
Iam getting following error when i execute following command in linux

-sudo bin/logstash -f /etc/logstash/conf.d/dataLoader1.conf

Error:
NameError: cannot link Java class org.apache.logging.log4j.core.config.LoggerConfig org/logstash/log/LogstashLogEventFactory : Unsupported major.minor version 52.0
method_missing at org/jruby/javasupport/JavaPackage.java:259
module:Logging at /usr/share/logstash/logstash-core/lib/logstash/logging/logger.rb:10
module:LogStash at /usr/share/logstash/logstash-core/lib/logstash/logging/logger.rb:5
at /usr/share/logstash/logstash-core/lib/logstash/logging/logger.rb:4
require at org/jruby/RubyKernel.java:955
at /usr/share/logstash/logstash-core/lib/logstash/util/loggable.rb:1
require at org/jruby/RubyKernel.java:955
at /usr/share/logstash/logstash-core/lib/logstash/util/loggable.rb:2
require at org/jruby/RubyKernel.java:955
at /usr/share/logstash/logstash-core/lib/logstash/settings.rb:1
require at org/jruby/RubyKernel.java:955
at /usr/share/logstash/logstash-core/lib/logstash/settings.rb:2
require at org/jruby/RubyKernel.java:955
at /usr/share/logstash/lib/bootstrap/environment.rb:70

Any help will be appreciated.

Thanks

Your JVM is too old. You need Java 8.

Hi magnus, thanks for replying.
I checked java -version, it is showing "1.8.0_131"

And what about sudo java -version? Why are you running Logstash as root anyway? That shouldn't be necessary.

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