# Error in logstash-plugin-wmi

**URL:** <https://discuss.elastic.co/t/error-in-logstash-plugin-wmi/148086>\
**Category:** Logstash\
**Created:** [September 11, 2018, 8:33am UTC](https://discuss.elastic.co/t/error-in-logstash-plugin-wmi/148086 "2018-09-11T08:33:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarry](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jarry](https://discuss.elastic.co/u/jarry)\
**Post date:** [September 11, 2018, 8:33am UTC](https://discuss.elastic.co/t/error-in-logstash-plugin-wmi/148086/1 "2018-09-11T08:33:59Z")

</div>

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

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/9/9/9997d9ea058c066fdec0d972146898444b429206.jpeg)  
error message：  
 ![2](https://us1.discourse-cdn.com/elastic/original/3X/b/3/b3fdaa18fe75cb7a9a12cb3c5aebce395a1129cd.jpeg)  
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 method`value' 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:in`register\_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:in`each'", "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:in`start\_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:in`run'", "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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2018, 8:34am UTC](https://discuss.elastic.co/t/error-in-logstash-plugin-wmi/148086/2 "2018-10-09T08:34:01Z")

</div>

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