I am using mongodb as an output, however, I continue getting error Mongo::Auth::Unauthorized: User user is not authorized to access db. However, I verified user and pass is correct by connecting directly.
:backtrace=>["/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram/conversation.rb:445:in validate!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram/conversation.rb:440:in
validate_first_message!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram/conversation.rb:112:in continue'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram.rb:59:in
login'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connection.rb:64:in connect!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connectable.rb:93:in
ensure_connected'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connection.rb:130:in write'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connectable.rb:66:in
dispatch'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/loggable.rb:44:in log'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/loggable.rb:67:in
log_debug'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connectable.rb:65:in dispatch'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/executable.rb:35:in
execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connection_pool.rb:99:in with_connection'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/context.rb:63:in
with_connection'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/executable.rb:34:in execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/write/insert.rb:72:in
execute_write_command'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/write/insert.rb:62:in execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/collection.rb:190:in
insert_many'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:65:in register'", "org/jruby/RubyHash.java:1342:in
each'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:63:in register'", "org/jruby/ext/thread/Mutex.java:149:in
synchronize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:62:in register'", "org/jruby/RubyKernel.java:1479:in
loop'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:60:in `register'"]}