Logstash-input-wmi error in logs

Hello,

I installed logstash-wmi plugin into my logstash installation 7.8 using logstash executable and command install.

I am not able to move forward with my configuration becouse of "(LoadError) load error: win32ole/win32ole"

My config looks like bellow.

input {
  wmi { # Connect to a remote host
    query => "select * from Win32_Process"
    host => "ip"
    user => "domain\login"
    password => "password"
  }
}
 output {
 file {
   path => "/var/log/logstash/test.log"
 }

Error log looks like this.

Aug 28 18:45:33 host.domain.pl logstash[26777]: [2020-08-28T18:45:33,467][ERROR][logstash.agent           ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
Aug 28 18:45:33 host.domain.pl logstash[26777]: [2020-08-28T18:45:33,502][DEBUG][logstash.agent           ] Starting puma
Aug 28 18:45:33 host.domain.pl logstash[26777]: [2020-08-28T18:45:33,518][DEBUG][logstash.agent           ] Trying to start WebServer {:port=>9600}
Aug 28 18:45:33 host.domain.pl logstash[26777]: [2020-08-28T18:45:33,521][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) load error: win32ole/win32ole -- java.lang.UnsatisfiedLinkError: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/jruby-win32ole-0.8.5/lib/racob-x64.dll: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/jruby-win32ole-0.8.5/lib/racob-x64.dll: invalid ELF header (Possible cause: endianness mismatch)

I have found this topic but there is no answear to this problem.

I have found also https://github.com/logstash-plugins/logstash-input-eventlog/issues/5 but this is old topic and was supposed to be fixed in 1.5
logstash version.

Was is the current solution to this problem?

1 Like

Do you need some more information? I realy dont know how to solve this. Should I upgrade logstash to 7.9?

I have upgraded to 7.9 but error is still the same. I am on centos 7/x64.

I wanted to try instaling jruby-win32ole in version jruby-win32ole-0.8.4 but i got

Sep 03 11:51:43 pl-s950net-tools.cp.pl logstash[6268]: [ERROR] 2020-09-03 11:51:43.303 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (GemNotFound) Could not find jruby-win32ole-0.8.5 in any of the sources

Where do I need to change the version of a file so logstash see the new version of a gem?

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