MongoDB Change Streams tracker
MongoDB Change Streams tracker. Using
mongoct allows you to pipe the MongoDB collection changes to another program or file.
mongoct, simply run:
$ pip install mongoct
Before executing the command line tool you'll need a MongoDB URI connection in your environment (
Tracking changes in a certain collection is as easy as running the following command:
$ mongoct company posts
Changes will start flowing as JSON at the same time they're applied to the
post collection in the
You can now pipe the data to another program like
jq or save it to a file for latter processing.
¹ It's also possible to specify the MongoDB URI as an option (
mongoct company posts -u "mongodb://user:pass@host/db")
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.