Skip to content

Instantly share code, notes, and snippets.

@joyfulmonster
Last active November 13, 2021 06:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyfulmonster/66531337143b08666f33 to your computer and use it in GitHub Desktop.
Save joyfulmonster/66531337143b08666f33 to your computer and use it in GitHub Desktop.
The following are the steps to install mtools on Ubuntu 12
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
sudo apt-get install python-dev
sudo apt-get install gcc
sudo pip install mtools
#python -m pip install mtools
sudo pip install pymongo
/usr/local/bin/mlogfilter --scan --json
/usr/local/bin/mlogfilter mongodb.log --from Dec 05
/usr/local/bin/mloginfo mongodb.log --queries --sort min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment