ERROR org logstash Logstash java lang NoClassDefFoundError Could not initialize class org logstash config ir compiler ComputeStepSyntaxElement

0 votes

Hi Guys,

I am trying to run the Logstash server in my Linux system, but it is showing me the below error.

[logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2020-06-17T00:14:32,793][INFO ][logstash.outputs.elasticsearch] Using default mapping template
[2020-06-17T00:14:32,826][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been create for key: cluster_uuids. This may result in invalid serialization.  It is recommended to log an issue to the responsible developer/development team.
[2020-06-17T00:14:32,829][INFO ][logstash.javapipeline    ] Starting pipeline {:pipeline_id=>"appd", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>1000, :thread=>"#<Thread:0x5e56cac3 run>"}
[2020-06-17T:14:32,869][INFO ][logstash.inputs.http_poller] Registering http_poller Input {:type=>nil, :schedule=>{"cron"=>"* * * * * UTC"}, :timeout=>nil}
[2020-06-17T00:14:32,892][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"index_patterns"=>"logstash-*", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s", "number_of_shards"=>1}, "mappings"=>{"dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}
[2020-06-17T00:14:32,904][INFO ][logstash.javapipeline    ] Pipeline started {""=>"appd"}
[2020-06-17T00:14:32,989][INFO ][logstash.agent           ] Pipelines running {:count=>1, :running_pipelines=>[:appd], :non_running_pipelines=>[]}
[2020-06-17T00:14:32,990][ERROR][org.logstash.Logstash    ] java.lang.NoClassDefFoundError: Could not initialize class
Jun 18, 2020 in DevOps Tools by akhtar
• 38,210 points

1 answer to this question.

0 votes


Logstash server needs OpenJDK in the background. But all the versions of OpenJDK is not compatible with Logstash. It is compatible with version 8 mostly. You can use the below command to check the Java version.

$ java -version
answered Jun 18, 2020 by MD
• 95,300 points

Related Questions In DevOps Tools

0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

ERROR: Could not find a valid gem 'logstash-core-plugin-api' (>= 0) in any repository

Hi@akhtar, I think you don't have JRuby installed ...READ MORE

answered Jun 18, 2020 in DevOps Tools by MD
• 95,300 points
+2 votes
3 answers

mvn not recognized as an internal or external command error

Setting the environment variables JAVA_HOME, MAVEN_HOME and  ...READ MORE

answered Jun 3, 2019 in DevOps Tools by Sirajul
• 59,090 points