fluent-plugin-mongo
fluent-plugin-mongo copied to clipboard
Mongo::Auth::Unauthorized error=
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>
Could you paste complete error message(fluentd side and mongodb if possible)?