MongoDB-Log-Plotter is a script that analyzes MongoDB logs (version 4.4 or above) to extract information about slow queries, connections, and errors. It then visualizes the data using Dash and Plotly.
- Python 3.6 or later
- MongoDB version 4.4 or above
- Install dependencies using
pip install -r requeriments.txt
- Clone the repository
- Navigate to the project directory:
cd MongoDB-Log-Plotter - Install dependencies:
pip install -r requeriments.txt - Run the script:
python MongoDB_log_plotter.py /path/to/log/file.log
Run the script with the path to the MongoDB log file as a command-line argument.
python MongoDB_log_plotter.py /path/to/log/file.logThe script will launch a server, and you can view the dashboard by navigating to http://localhost:8050/ in your web browser:
You can zoom, pan, and filter the namespaces and erros. Also, if you click on a data point, the command used is displayed
MongoDB-Log-Plotter is designed to work with MongoDB version 4.4 or above.
- Plot slow queries, connections, and errors from MongoDB logs
- Visualize data using Dash and Plotly
- Display additional information about the MongoDB environment
This project is licensed under the GNU License - see the LICENSE file for details.
Contributions are welcome! Since I'm not a programmer, your feedback is valuable. If you are a programmer and notice any mistakes or want to enhance the script, please feel free to contribute! :)
