Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.68 KB

File metadata and controls

45 lines (30 loc) · 1.68 KB

MongoDB-Log-Plotter

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.

Prerequisites

  • Python 3.6 or later
  • MongoDB version 4.4 or above
  • Install dependencies using pip install -r requeriments.txt

Installation

  1. Clone the repository
  2. Navigate to the project directory: cd MongoDB-Log-Plotter
  3. Install dependencies: pip install -r requeriments.txt
  4. Run the script: python MongoDB_log_plotter.py /path/to/log/file.log

Usage

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.log

The script will launch a server, and you can view the dashboard by navigating to http://localhost:8050/ in your web browser:

Screenshoot

You can zoom, pan, and filter the namespaces and erros. Also, if you click on a data point, the command used is displayed

MongoDB Version Compatibility

MongoDB-Log-Plotter is designed to work with MongoDB version 4.4 or above.

Features

  • Plot slow queries, connections, and errors from MongoDB logs
  • Visualize data using Dash and Plotly
  • Display additional information about the MongoDB environment

License

This project is licensed under the GNU License - see the LICENSE file for details.

Contributing

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! :)