Error in logstash-plugin-wmi

Hello.
Im trying to run wmi input plugin, but i got only errors "Bad file descriptor"
logstash-plugin-wmi install:


error message:

f:\nginx\logstash-6.4.0\logstash-6.4.0\bin>logstash -f win.conf
Sending Logstash logs to f:/nginx/logstash-6.4.0/logstash-6.4.0/logs which is now configured via log4j2.properties
[2018-09-11T16:11:29,331][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are spec
ified
[2018-09-11T16:11:30,055][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.4.0"}
[2018-09-11T16:11:34,129][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125
, "pipeline.batch.delay"=>50}
[2018-09-11T16:11:34,238][INFO ][logstash.inputs.wmi ] Registering wmi input {:query=>"select * from Win32_PerfFormattedData_PerfOS_Processor"}
[2018-09-11T16:11:34,519][ERROR][logstash.pipeline ] Error registering plugin {:pipeline_id=>"main", :plugin=>"<LogStash::Inputs::WMI query=>"
select * from Win32_PerfFormattedData_PerfOS_Processor", id=>"0effd0875a0ddbd309e44afa9a2ca975dda84a7cf48bb0d59e468a929d236b07", enable_metric=>tru
e, codec=><LogStash::Codecs::Plain id=>"plain_70aa11dd-cf05-4fa6-9f42-7ec426a6dd13", enable_metric=>true, charset=>"UTF-8">, interval=>10, host=>
"localhost", namespace=>"root\\cimv2">", :error=>"undefined method value' for nil:NilClass", :thread=>"#<Thread:0x11594a08 run>"} [2018-09-11T16:11:34,600][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<NoMethodError: undefine d methodvalue' for nil:NilClass>, :backtrace=>["f:/nginx/logstash-6.4.0/logstash-6.4.0/logstash-input-wmi-master/lib/logstash/inputs/wmi.rb:65:in r egister'", "f:/nginx/logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:241:inregister_plugin'", "f:/nginx/logstash-6.4.0/logstash
-6.4.0/logstash-core/lib/logstash/pipeline.rb:252:in block in register_plugins'", "org/jruby/RubyArray.java:1734:ineach'", "f:/nginx/logstash-6.4.0
/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:252:in register_plugins'", "f:/nginx/logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash/ pipeline.rb:395:instart_inputs'", "f:/nginx/logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:293:in start_workers'", "f:/nginx/ logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:199:inrun'", "f:/nginx/logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash
/pipeline.rb:159:in `block in start'"], :thread=>"#<Thread:0x11594a08 run>"}
[2018-09-11T16:11:34,620][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction
, :message=>"Could not execute action: PipelineAction::Create, action_result: false", :backtrace=>nil}
[2018-09-11T16:11:35,090][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}

My config:
input {
wmi {
query => "select * from Win32_PerfFormattedData_PerfOS_Processor"
}
}
output {
stdout { codec => rubydebug }
}

Running logstash on MS server 2008 R2 SP1.
How can I solve this problem?
Thank you in advance!

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