# Logstash MongoDB Output Plugin - command insert requires authentication

**URL:** <https://discuss.elastic.co/t/logstash-mongodb-output-plugin-command-insert-requires-authentication/268265>\
**Category:** Logstash\
**Created:** [March 24, 2021, 9:05pm UTC](https://discuss.elastic.co/t/logstash-mongodb-output-plugin-command-insert-requires-authentication/268265 "2021-03-24T21:05:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 24, 2021, 9:29pm UTC](https://discuss.elastic.co/t/logstash-mongodb-output-plugin-command-insert-requires-authentication/268265/2 "2021-03-24T21:29:32Z")

</div>

> [@christiancj](#):
>
> Any suggestion if this is a bug

It pretty much has to be, but where to start looking? If you look at the [issues](https://github.com/logstash-plugins/logstash-output-mongodb/issues?q=is%3Aissue+%22wrong+number+of+arguments%22) for the plugin it comes up from time to time. Some of them appear to be version dependencies where an underlying library change their interfaces.

Here is an [example](https://jira.mongodb.org/browse/RUBY-2146) from last year that turned out to be in the mongodb client code.

Last year another user had a similar [issue](https://discuss.elastic.co/t/logstash-warning-hanshaking-error-when-connecting-with-mongodb/250979). I pointed them at an unmerged PR and they said they would try to build it themselves. No indication whether that worked.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-mongodb-output-plugin-command-insert-requires-authentication/268265)._
