YugabyteDB Log Analyzer is a tool for uploading, analyzing, and visualizing YugabyteDB log files. It provides a web interface to view reports, histograms, GFlags, and related diagnostic information.
- Upload YugabyteDB log bundles and generate analysis reports
- View detailed report data, histograms, and GFlags
- Search and filter reports by cluster, org, or case ID
- Explore related reports and Log Details
log_analyzer.py
– Main log analysis logicpatterns_lib.py
– Log pattern matching librarylib/
– Utility modules for log analysiswebserver/app.py
– Flask web server for the UI and APIwebserver/static/
– Frontend assets (JS, CSS)webserver/templates/
– HTML templates
- Python 3.10+
- Flask
- psycopg2 (for PostgreSQL database)
- Clone the repository:
git clone <repo-url> cd log_analyzer
- Install dependencies:
pip install -r requirements.txt
cd webserver
python app.py
The server will start at http://localhost:5000
.
You can upload a report via the web UI or using the API:
curl -X POST -H "Content-Type: application/json" -d @report.json http://localhost:5000/upload
See API_ENDPOINTS.md for a detailed list of API endpoints and example usage.
db_config.json
– Database configurationlog_conf.yml
– Log analysis configuration
MIT License
For questions or contributions, please open an issue or pull request.