Hi all,
I am not using momgoDb Atlas but i want to maintain a log in a separate collection of all update insert and delete operations. Please help me do that
The oplog contains this information, but it is not durably stored. You might want to consider instead reviewing users and roles and limiting the operations that they can perform. The data in MongoDB is your responsibility to administer and protect.
Hello!
As @Peter_Hubbard has mentioned, this isn’t something that’s natively provided in MongoDB. With a dynamic language like Python, you could relatively easily write wrapper objects that wrap your collection objects and record (in the database) whenever one of these operations is executed.
I do feel the need to warn you that this is going to dramatically increase the load on your database!
Let me know if you’d like me to provide some sample code for wrapping a collection.
Mark