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?