fluent-plugin-mongo icon indicating copy to clipboard operation
fluent-plugin-mongo copied to clipboard

Mongo::Auth::Unauthorized error=

Open qshine opened this issue 5 years ago • 1 comments

I use mongodb cluster, but get this error. I tried create a new user but it didn't work.

the config is

<match mongo.**>
  @type mongo

  connection_string "mongodb://td_fluent:td_fluent@xxx:xxx,xxx:xxx/fluentd_logs?connect=sharded&readPreference=nearest&authMechanism=MONGODB-X509&authSource=%24external"
  database fluentd_logs
  collection zion

  capped
  capped_size 10240m

  <buffer>
    flush_interval 10s
  </buffer>

</match>

qshine avatar Sep 24 '19 05:09 qshine

Could you paste complete error message(fluentd side and mongodb if possible)?

ganmacs avatar Sep 30 '19 02:09 ganmacs