logstash-output-mongodb 插件 v 3.1.7 ArgumentError

logstash-output-mongodb 插件 v 3.1.7 ArgumentError

我最近从 mongodb 3.0 迁移到 mongodb 6.0,并且 logstash 插件 3.1.5 不再起作用,我将插件升级到 3.1.7,但在 logstash 日志中不断出现此错误:

n] MONGODB | Error checking 127.0.0.1:27017: ArgumentError: wrong number of arguments (given 2, expected 1)
n] MONGODB | Failed to handshake with 127.0.0.1:27017: ArgumentError: wrong number of arguments (given 2, expected 1)
n] MONGODB | Error checking 127.0.0.1:27017: ArgumentError: wrong number of arguments (given 2, expected 1)
n] MONGODB | Failed to handshake with 127.0.0.1:27017: ArgumentError: wrong number of arguments (given 2, expected 1)
n] MONGODB | Error checking 127.0.0.1:27017: ArgumentError: wrong number of arguments (given 2, expected 1)

这是我的 logstash 配置:

input {
  file {
    path => "/home/shaigaut/logstash.log"
    type => "log"
  }
}


output {
  mongodb {
    collection => "testplugin"
    database => "iris"
    uri => "mongodb://127.0.0.1:27017"
    codec => json { }
  }
}

我知道应该用这个来修补:https://github.com/logstash-plugins/logstash-output-mongodb/pull/66

但我仍然看到这个问题。请帮忙。

相关内容