Logstash WMI plugin help

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

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)",

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