# rueckstiess/mtools

A collection of scripts to set up MongoDB test environments and parse and visualize MongoDB log files.

Repository: https://github.com/rueckstiess/mtools
Canonical: https://ross.abutalabs.com/products/mtools
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2024-06-24T10:22:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5101, "days_push": 800, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1951, forks 413 (observed 2026-08-28T04:05:58.248404+00:00)

## What it is
mtools is a Python collection of helper scripts for parsing, filtering, and visualizing MongoDB log files (mongod/mongos). It also includes mlaunch for spinning up local MongoDB test environments (replica sets, sharded clusters) and mtransfer for copying databases between instances.

## Use cases
- parse and filter mongodb log files
- visualize mongodb slow queries
- find table scans in mongod logs
- spin up a local mongodb replica set for testing
- set up a sharded mongodb cluster locally
- merge and slice mongodb logs by time
- get summary info from a mongodb log file
- transfer a database between mongodb instances

## When to choose
- you administer or debug MongoDB servers and need to analyze log files
- you need a quick local MongoDB test environment with replica sets or shards
- you want plots of query durations, connections, or restarts from logs

## When to avoid
- you use a database other than MongoDB
- you need production monitoring/alerting rather than ad-hoc log analysis
- you need a supported MongoDB Inc. tool for commercial support contexts

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, data-visualization, parser, cli
- domain: databases, developer-tools, data-visualization
- platform: python, cli, cross-platform
- tags: mongodb, log-analysis, test-environments, replica-set, sharding, command-line

## Member repositories
- rueckstiess/mtools (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:58.248404+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:06:50.302363+00:00, confidence not recorded.
  - readme: https://github.com/rueckstiess/mtools (fetched 2026-08-28T04:05:58.248404+00:00, sha ec29d390878a)
  - registry_pypi: https://pypi.org/pypi/mtools/json (fetched 2026-08-29T10:46:37.738231+00:00, sha 9d680f90312d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
