Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created July 7, 2021 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbutko/2963024c77e40d482f2d3919f2e58444 to your computer and use it in GitHub Desktop.
Save jbutko/2963024c77e40d482f2d3919f2e58444 to your computer and use it in GitHub Desktop.
Mongodb helpers

see last 1000 mongodb replica logs

sudo tail /var/log/mongodb/mongod.log -f -n 1000 | grep repl

see last 1000 mongodb logs (all types)

sudo tail /var/log/mongodb/mongod.log -f -n 1000

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