A Mtools Introduction
Mtools is a set of scripts used to parse and filter MongoDB log files. The Mtools includes several tools:
Mlogfilter can cut log files according to time, filter slow query, etc.
Mloginfo returns log file information, such as start and end times, etc.
Mplotqueries view display of log files
Mlogvis creating a custom HTML file interactive presentation
Mlaunch quickly build a local test environment, including replicating a collection Shard system
Mtools is written in Python, requires python2.6 or python2.7, is not currently compatible Python3
Two mtools use
1. Installing Mtools
You can install Mtools directly using PIP
Yum Install Python-devel
Pip Install Mtools
or download the installation directly
wget https://pypi.python.org/packages/25/fe/c9375c462c9f0592407695bb5ce784866ce7b5336b8d66141e1f3250cf1f/ Mtools-1.2.2.tar.gztar ZXVF mtools-1.2.2.tar.gz
Reference Documentation:
Https://github.com/rueckstiess/mtools
This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.com/2165294/1864443
Analyzing MongoDB log files using Mtools