# Logstash WMI plugin logstash-input-wmi

**URL:** <https://discuss.elastic.co/t/logstash-wmi-plugin-logstash-input-wmi/209774>\
**Category:** Logstash\
**Created:** [November 27, 2019, 11:28pm UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-logstash-input-wmi/209774 "2019-11-27T23:28:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeaolucas](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jeaolucas](https://discuss.elastic.co/u/jeaolucas)\
**Post date:** [November 27, 2019, 11:28pm UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-logstash-input-wmi/209774/1 "2019-11-27T23:28:10Z")

</div>

Hi i have the next problem when i try to excecute my pipeline

logstash -f config\logstash-wmi-simple.conf

this is the content of file  
//

# WMI -\> Logstash -\> Elasticsearch pipeline.

input {  
# prueba local  
wmi {  
host =\> "127.0.0.1"  
query =\> "select \* from Win32\_PerfFormattedData\_PerfOS\_Processor"  
}  
}

output {

# salida estandar

stdout {  
codec =\> rubydebug  
}  
}

This is the error i have, I try to solve by diferent soluctions and 1 can't

[2019-11-27T17:02:26,346][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2019-11-27T17:02:26,348][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2019-11-27T17:02:30,569][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu  
[2019-11-27T17:02:31,303][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x66fe4aa5 sleep\>"}  
[2019-11-27T17:02:31,354][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2019-11-27T17:02:31,354][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2019-11-27T17:02:31,437][DEBUG][logstash.inputs.wmi] Executing WMI query 'select \* from Win32\_PerfFormattedData\_PerfOS\_Processor'  
[2019-11-27T17:02:31,438][ERROR][logstash.inputs.wmi] WMI query error: Invoke of: ExecQuery  
Source: SWbemServicesEx  
Description:

["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:819)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:835)", "org.jruby.runtime.Helpers$MethodMissingMethod.call(Helpers.java:393)", "org.jruby.runtime.Helpers.callMethodMissing(Helpers.java:111)", "org.jruby.ir.targets.InvokeSite.callMethodMissing(InvokeSite.java:722)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:162)", "C\_3a\_.opt.ElasticSearch.logstash\_minus\_6\_8\_3.vendor.bundle.jruby.$2\_dot\_5\_dot\_0.gems.logstash\_minus\_input\_minus\_wmi\_minus\_3\_dot\_0\_dot\_4\_minus\_java.lib.logstash.inputs.wmi.RUBY$block$run$1(C:/opt/ElasticSearch/logstash-6\_8\_3/vendor/bundle/jruby/2.5.0/gems/logstash-input-wmi-3.0.4-java/lib/logstash/inputs/wmi.rb:77)", "org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:146)", "org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:85)", "org.jruby.runtime.Block.yieldSpecific(Block.java:134)", "org.jruby.RubyKernel.loop(RubyKernel.java:1425)", "C\_3a\_.opt.ElasticSearch.logstash\_minus\_6\_8\_3.vendor.bundle.jruby.$2\_dot\_5\_dot\_0.gems.logstash\_minus\_input\_minus\_wmi\_minus\_3\_dot\_0\_dot\_4\_minus\_java.lib.logstash.inputs.wmi.RUBY$method$run$0(C:/opt/ElasticSearch/logstash-6\_8\_3/vendor/bundle/jruby/2.5.0/gems/logstash-input-wmi-3.0.4-java/lib/logstash/inputs/wmi.rb:76)", "C\_3a\_.opt.ElasticSearch.logstash\_minus\_6\_8\_3.vendor.bundle.jruby.$2\_dot\_5\_dot\_0.gems.logstash\_minus\_input\_minus\_wmi\_minus\_3\_dot\_0\_dot\_4\_minus\_java.lib.logstash.inputs.wmi.RUBY$method$run$0$ **VARARGS** (C:/opt/ElasticSearch/logstash-6\_8\_3/vendor/bundle/jruby/2.5.0/gems/logstash-input-wmi-3.0.4-java/lib/logstash/inputs/wmi.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183)", "C\_3a\_.opt.ElasticSearch.logstash\_minus\_6\_8\_3.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$inputworker$0(C:/opt/ElasticSearch/logstash-6\_8\_3/logstash-core/lib/logstash/pipeline.rb:426)", "C\_3a\_.opt.ElasticSearch.logstash\_minus\_6\_8\_3.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$inputworker$0$ **VARARGS** (C:/opt/ElasticSearch/logstash-6\_8\_3/logstash-core/lib/logstash/pipeline.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183)", "C\_3a\_.opt.ElasticSearch.logstash\_minus\_6\_8\_3.logstash\_minus\_core.lib.logstash.pipeline.RUBY$block$start\_input$1(C:/opt/ElasticSearch/logstash-6\_8\_3/logstash-core/lib/logstash/pipeline.rb:420)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:136)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:77)", "org.jruby.runtime.Block.call(Block.java:124)", "org.jruby.RubyProc.call(RubyProc.java:295)", "org.jruby.RubyProc.call(RubyProc.java:274)", "org.jruby.RubyProc.call(RubyProc.java:270)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105)", "java.lang.Thread.run(Thread.java:748)"]  
[2019-11-27T17:02:36,362][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}

---

<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:** [December 25, 2019, 11:28pm UTC](https://discuss.elastic.co/t/logstash-wmi-plugin-logstash-input-wmi/209774/2 "2019-12-25T23:28:10Z")

</div>

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