Analyzing MongoDB log files using Mtools

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.