Logstash WMI plugin logstash-input-wmi

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"}

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