We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description:
When the beat input contains enable_metric option and set it to false, the error is thrown.
enable_metric
false
input { beats { port => 5044 enable_metric => false } }
Stack trace:
[running with ../logstash.config/beat.logstash.conf Sending Logstash logs to /Users/surfer/elastic/labs/logstash/6.6.1/logs which is now configured via log4j2.properties [2019-02-26T14:30:14,989][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.queue", :path=>"/Users/surfer/elastic/labs/logstash/6.6.1/data/queue"} [2019-02-26T14:30:14,997][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.dead_letter_queue", :path=>"/Users/surfer/elastic/labs/logstash/6.6.1/data/dead_letter_queue"} [2019-02-26T14:30:15,135][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified [2019-02-26T14:30:15,150][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.6.1"} [2019-02-26T14:30:15,183][INFO ][logstash.agent ] No persistent UUID file found. Generating new UUID {:uuid=>"e472a9e2-7cca-4442-8435-f271ca86a204", :path=>"/Users/surfer/elastic/labs/logstash/6.6.1/data/uuid"} [2019-02-26T14:30:22,898][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50} [2019-02-26T14:30:23,367][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://localhost:9200/]}} [2019-02-26T14:30:23,558][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"} [2019-02-26T14:30:23,614][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>6} [2019-02-26T14:30:23,618][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>6} [2019-02-26T14:30:23,645][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]} [2019-02-26T14:30:23,664][INFO ][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil} [2019-02-26T14:30:23,680][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"template"=>"logstash-*", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"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-02-26T14:30:23,977][INFO ][logstash.inputs.beats ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5044"} [2019-02-26T14:30:23,994][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x694ff892 run>"} [2019-02-26T14:30:24,044][ERROR][logstash.pipeline ] A plugin had an unrecoverable error. Will restart this plugin. Pipeline_id:main Plugin: <LogStash::Inputs::Beats port=>5044, enable_metric=>false, id=>"49aba725a95d7fbe7d6774d6c3224277a881c499aa7649648080af1a25fd26e4", codec=><LogStash::Codecs::Plain id=>"plain_44ab064d-55ce-481c-b03d-856dea23eadc", enable_metric=>true, charset=>"UTF-8">, host=>"0.0.0.0", ssl=>false, add_hostname=>true, ssl_verify_mode=>"none", ssl_peer_metadata=>false, include_codec_tag=>true, ssl_handshake_timeout=>10000, tls_min_version=>1, tls_max_version=>1.2, cipher_suites=>["TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"], client_inactivity_timeout=>60, executor_threads=>8> Error: org.logstash.instrument.metrics.NamespacedMetricExt cannot be cast to org.logstash.instrument.metrics.NullMetricExt Exception: Java::JavaLang::ClassCastException Stack: org.logstash.instrument.metrics.NullNamespacedMetricExt.initialize(NullNamespacedMetricExt.java:40) org.logstash.instrument.metrics.NullNamespacedMetricExt$INVOKER$i$0$2$initialize.call(NullNamespacedMetricExt$INVOKER$i$0$2$initialize.gen) org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:725) org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208) org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:741) org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298) org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79) org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83) org.jruby.RubyClass.newInstance(RubyClass.java:1022) org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen) org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.logstash_minus_core.lib.logstash.plugin.RUBY$method$metric$0(/Users/surfer/elastic/labs/logstash/6.6.1/logstash-core/lib/logstash/plugin.rb:120) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.logstash_minus_core.lib.logstash.plugin.RUBY$method$metric$0$__VARARGS__(/Users/surfer/elastic/labs/logstash/6.6.1/logstash-core/lib/logstash/plugin.rb) org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77) org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93) org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_input_minus_beats_minus_5_dot_1_dot_8_minus_java.lib.logstash.inputs.beats.message_listener.RUBY$method$initialize$0(/Users/surfer/elastic/labs/logstash/6.6.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.8-java/lib/logstash/inputs/beats/message_listener.rb:23) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_input_minus_beats_minus_5_dot_1_dot_8_minus_java.lib.logstash.inputs.beats.message_listener.RUBY$method$initialize$0$__VARARGS__(/Users/surfer/elastic/labs/logstash/6.6.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.8-java/lib/logstash/inputs/beats/message_listener.rb) org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77) org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93) org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298) org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79) org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83) org.jruby.RubyClass.newInstance(RubyClass.java:1022) org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen) org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_input_minus_beats_minus_5_dot_1_dot_8_minus_java.lib.logstash.inputs.beats.RUBY$method$run$0(/Users/surfer/elastic/labs/logstash/6.6.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.8-java/lib/logstash/inputs/beats.rb:210) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_input_minus_beats_minus_5_dot_1_dot_8_minus_java.lib.logstash.inputs.beats.RUBY$method$run$0$__VARARGS__(/Users/surfer/elastic/labs/logstash/6.6.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.8-java/lib/logstash/inputs/beats.rb) org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77) org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93) org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.logstash_minus_core.lib.logstash.pipeline.RUBY$method$inputworker$0(/Users/surfer/elastic/labs/logstash/6.6.1/logstash-core/lib/logstash/pipeline.rb:426) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.logstash_minus_core.lib.logstash.pipeline.RUBY$method$inputworker$0$__VARARGS__(/Users/surfer/elastic/labs/logstash/6.6.1/logstash-core/lib/logstash/pipeline.rb) org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77) org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93) org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145) Users.surfer.elastic.labs.logstash.$6_dot_6_dot_1.logstash_minus_core.lib.logstash.pipeline.RUBY$block$start_input$1(/Users/surfer/elastic/labs/logstash/6.6.1/logstash-core/lib/logstash/pipeline.rb:420) org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145) org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71) org.jruby.runtime.Block.call(Block.java:124) org.jruby.RubyProc.call(RubyProc.java:289) org.jruby.RubyProc.call(RubyProc.java:246) org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104) java.lang.Thread.run(Thread.java:748) [2019-02-26T14:30:24,052][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]} [2019-02-26T14:30:24,316][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
The text was updated successfully, but these errors were encountered:
robbavey
No branches or pull requests
Description:
When the beat input contains
enable_metric
option and set it tofalse
, the error is thrown.Stack trace:
The text was updated successfully, but these errors were encountered: