Add support for tailing oplog
stennie opened this issue · 2 comments
stennie commented
It would be great to add support for tailing the oplog as an alternative to using system profile data.
For a deployment with the oplog enabled (i.e. a replica set, although this can be enabled on a standalone node):
- there's no extra write overhead to view all insert/update/remove operations (as compared to system profiling level 2)
- write operations can be tracked across multiple databases with a single tail command
mrsarm commented
Yes, I thought that, but according with oplog documentation, only "operations that modify the data stored in your databases" are recorded, so find or any cursor operations will not saved.
stennie commented
@mrsarm That's correct .. the oplog would only include operations that affect data so you'd still need system profiling for query data.
The format in the oplog also isn't identical to the original query/update, but could still be useful to track changes to data without enabling profiling.