| 简体中文 | English |
A local, offline MongoDB analysis tool for operations engineers. Its MongoDB Log and MongoDB Metric workspaces process files on your computer without connecting to MongoDB or automatically sending data to an AI service.
The project was designed, implemented, tested, and documented with AI. See the project roadmap for recorded validation results and conditionally skipped tests.
The current web interface and exported Markdown reports are in Simplified Chinese. The English user guide includes the relevant Chinese labels.
| Workspace | Capabilities |
|---|---|
| MongoDB Log | Streams structured Extended JSON, legacy single-line, and GZip logs; supports multi-file tasks, full-input latency buckets, the globally slowest 5,000 queries, and Top 50 query patterns with independent slowest samples |
| Log diagnostics and reports | Inspects anomalies, connections, authentication, replica-set events, slow-query efficiency signals, and known-field coverage; exports sanitized Markdown reports |
| MongoDB Metric | Indexes 1–20 FTDC files locally; queries groups in selection order, with raw values or adjacent deltas, all-zero hiding, sampling gaps, and bounded downsampling |
Charts provide inspectable values. Log analysis also includes pattern filters, scatter plots, and detailed query records. For operating steps, aggregation definitions, and data retention, see the English User Guide.
The public image is available on Docker Hub for linux/amd64 and linux/arm64. Java, Node.js, and MongoDB are not required on the host:
docker run -d \
--name mongodb-log-analyzer \
--restart unless-stopped \
--memory=3g \
-p 127.0.0.1:18080:18080 \
-v mongodb-log-analyzer-data:/app/data \
whaleal/mongodb-log-analyzer:0.1.3
Open http://127.0.0.1:18080. The container runs as a non-root user with a 2 GB JVM heap limit; total process memory also includes native overhead. Task data persists in the named volume, which should remain mounted when upgrading.
The example pins the published 0.1.3 version. Source changes do not automatically update published JARs or images. See GitHub Releases for downloadable versions.
Download a launcher package from GitHub Releases, extract it, and preserve this layout. Java 17 or newer is required:
mongodb-log-analyzer/
├── mongodb-log-analyzer.jar
└── scripts/
├── start.command
├── start.sh
└── start.bat
chmod +x scripts/start.command scripts/start.sh once, then double-click scripts/start.command../scripts/start.sh.scripts\start.bat.The launchers use -Xms128m -Xmx2g and attempt to open your browser. See the user guide for stopping the application, port troubleshooting, and the author introduction.
127.0.0.1:18080. There are no accounts, authorization, or multi-user isolation; the Docker example also publishes the port locally only.The user guide centralizes data retention, copies left after interrupted processes, deletion behavior, and report sanitization.
The backend requires Java 17 and Maven. For the frontend, use Node.js 22 at version 22.12+, or Node.js 24, with npm. This does not mean every version above 22.12 is supported; check dependency engines in the lockfile.
Run from the repository root:
mvn test
cd web
npm ci
npm test -- --run
npm run build
cd ..
mvn clean package
The output is target/mongodb-log-analyzer.jar. During prepare-package, Maven runs npm ci and the frontend build, then embeds the static assets in the JAR. Maven packaging does not run frontend tests, so use the full sequence above before a release. The first build downloads Maven and npm dependencies; packaged runtime use does not need the build tools.
Alternatively, build a local image from the repository root. The multi-stage Docker build runs frontend and backend tests:
docker build -t mongodb-log-analyzer:local .
The backend uses Spring Boot and MongoDB BSON; the frontend uses Vue 3, Vite, Element Plus, ECharts, and Vitest. See the project design for architecture, storage, public APIs, and internal components.
| Document | Purpose |
|---|---|
| English User Guide / 中文使用指南 | Operation, data retention, privacy, limits, and troubleshooting |
| Project design (Chinese) | Architecture, algorithms, storage, REST APIs, and tradeoffs |
| AI rewrite guide (Chinese) | Change workflow, code navigation, validation matrix, and prompts |
| Project rules (Chinese) | Development constraints and documentation ownership |
| Project roadmap (Chinese) | Current progress, release status, and recorded validation |
HP is a WeChat public account writer, an internet technology and product professional, and a hands-on AI practitioner. Areas of practice include content writing, knowledge management, and AI coding tools and products.
Licensed under the Apache License 2.0.