# Logstash WMI plugin help

**URL:** <https://discuss.elastic.co/t/logstash-wmi-plugin-help/55509>\
**Category:** Logstash\
**Created:** [July 14, 2016, 11:13am UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-help/55509 "2016-07-14T11:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagadish\_Manepalli](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jagadish\_Manepalli](https://discuss.elastic.co/u/Jagadish_Manepalli)\
**Post date:** [July 14, 2016, 11:13am UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-help/55509/1 "2016-07-14T11:13:33Z")

</div>

Hi,

I am trying to collect the performance counters on the windows system using the below configuration. But I am getting the following error. Please suggest me any solution to overcome the error.

The error reported is:  
undefined method `value' for nil:NilClass

Here is my config file.

input {  
wmi {  
query =\> "select \* from Win32\_PerfFormattedData\_PerfOS\_Processor"  
}  
}  
output  
{  
stdout  
{  
codec =\> rubydebug  
}  
}  
Please suggest me if there is any other way through which I can collect the performance counters of the system.

Thanks,  
Jagadish

---

<div class="post-metadata">

**Author:** ![Jagadish\_Manepalli](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jagadish\_Manepalli](https://discuss.elastic.co/u/Jagadish_Manepalli)\
**Post date:** [July 15, 2016, 8:30am UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-help/55509/2 "2016-07-15T08:30:03Z")

</div>

I fixed the above error however I got to see a different error, can someone help on the below:

{:timestamp=\>"2016-07-15T13:49:40.192000+0530", :message=\>"WMI query error: Invoke of: ExecQuery\nSource: SWbemServicesEx\nDescription:  
\n\n["org.racob.com.Dispatch.invokev(Native Method)",  
"org.racob.com.Dispatch.invokev(Dispatch.java:243)",  
"org.racob.com.Dispatch.callN(Dispatch.java:187)",  
"org.jruby.ext.win32ole.RubyWIN32OLE.invokeMethodOrGet(RubyWIN32OLE.java:205)",  
"org.jruby.ext.win32ole.RubyWIN32OLE.method\_missing(RubyWIN32OLE.java:113)",  
"org.jruby.ext.win32ole.RubyWIN32OLE$INVOKER$i$0$0$method\_missing.call(RubyWIN32OLE$INVOKER$i$0$0$method\_missing.gen)",  
"org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:679)",  
"org.jruby.runtime.Helpers$MethodMissingMethod.call(Helpers.java:454)",  
"org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)",  
"org.jruby.runtime.callsite.CachingCallSite.callMethodMissing(CachingCallSite.java:401)",  
"org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:323)",  
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)",  
"org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)",  
"org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:60)",

---

<div class="post-metadata">

**Author:** ![Jianmin\_Zhan](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@Jianmin\_Zhan](https://discuss.elastic.co/u/Jianmin_Zhan)\
**Post date:** [July 4, 2017, 8:24am UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-help/55509/3 "2017-07-04T08:24:14Z")

</div>

I have got the same error, Did you get the executable solution?

---

<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:** [November 4, 2022, 4:24am UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-help/55509/4 "2022-11-04T04:24:40Z")

</div>

Closed on November 4, 2022, 4:24am UTC


