Skip to content

Instantly share code, notes, and snippets.

@zol
Last active August 29, 2015 13:56
Show Gist options
  • Save zol/9339070 to your computer and use it in GitHub Desktop.
Save zol/9339070 to your computer and use it in GitHub Desktop.
Tailing the mongodb oplog
#!/usr/bin/env node
MongoWatch = require('mongo-watch');
new MongoWatch({
format: 'pretty',
db: 'XXX',
host: 'XXX'
}).watch();
@zol
Copy link
Author

zol commented Mar 4, 2014

You'll need to npm install mongo-watch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment