Logstash WMI Plugin error


I have Logstash installed on a RHEL. I Installed the WMI plugin (logstash-input-wmi) and tried to run it.
I am facing the following issue :

[ERROR] 2019-04-17 12:43:07.765 [Converge PipelineAction::Create<main>] 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}
[ERROR] 2019-04-17 12:43:07.897 [LogStash::Runner] 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.3.0/gems/jruby-win32ole-0.8.5/lib/racob-x64.dll: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/jruby-win32ole-0.8.5/lib/racob-x64.dll: invalid ELF header (Possible cause: endianness mismatch)

I see the Unsatisfied link error, but the file /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/jruby-win32ole-0.8.5/lib/racob-x64.dll is present :

-rwxr-xr-x 1 root root 123392 Apr 17 12:25 /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/jruby-win32ole-0.8.5/lib/racob-x64.dll

And my conf file is like this :

input {
  wmi { # Connect to a remote host
    query => "SELECT * FROM ApplicationPool"
    host => "MY-SERVER"
    user => "DOMAIN\user"
    password => "Password"

output {
 elasticsearch {
    hosts => "localhost:9200"
    manage_template => false
    index => "wmi-%{+YYYY.MM.dd}"
 stdout { codec => rubydebug }

What am i missing?

Thanks for your help

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