-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not authorized on admin [ Mongo version : 3.4.4 ] #27
Comments
@oz123 any idea ? I don't see any reason why this should not work. |
Hey, I got it to work When I checked the Pymongo doc, it says we can pass
So instead of giving username, password separately, i gave it like this,
and everything remains same, and I can confirm I have log data in the collection, so i guess it is better to mention this in the README for others who is using Auth 🙂 👍 |
Will do. Thanks. I will close this issue after README is updated. |
Still pending.. |
It happended to me and I guess I found the reason. |
Issue :
What am trying to do with log4mongo :
I am writing a scrapy spider in which I need the log to be sent to MongoDB. My other mongo connections using
MongoClient
auth uri works fine. (ie.:client=MongoClient('mongodb://username:password@localhost:27045')
) with auth db asadmin
that has roles granted accordingly.I followed the README, but I can't get the Auth part to work, when the MongoDB is with auth disabled, the connection works.
Versions used:
The text was updated successfully, but these errors were encountered: