您好,我只是设置了一个文件拍以达到Logstash并收到以下错误:
[2019-12-18T00:14:32,748][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//myip:9200"]}
[2019-12-18T00:14:32,793][INFO ][logstash.outputs.elasticsearch] Using default mapping template
[2019-12-18T00: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.
[2019-12-18T00: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>"}
[2019-12-18T00:14:32,869][INFO ][logstash.inputs.http_poller] Registering http_poller Input {:type=>nil, :schedule=>{"cron"=>"* * * * * UTC"}, :timeout=>nil}
[2019-12-18T00: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"}}}}}}}
[2019-12-18T00:14:32,904][INFO ][logstash.javapipeline ] Pipeline started {"pipeline.id"=>"appd"}
[2019-12-18T00:14:32,989][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:appd], :non_running_pipelines=>[]}
[2019-12-18T00:14:32,990][ERROR][org.logstash.Logstash ] java.lang.NoClassDefFoundError: Could not initialize class org.logstash.config.ir.compiler.ComputeStepSyntaxElement
我的logstash conf:
input {
beats {
port => 5044
ssl => false
}
}
output {
elasticsearch {
hosts => ["myip:9200"]
index => "logsoasis"
}
stdout { codec => rubydebug }
}
请帮帮我。我不确定是什么原因。
谢谢!