A professional Python-based log analysis tool that scans log files, detects security events, identifies suspicious IP addresses, and generates both TXT and HTML reports.
- 📄 Read and analyze log files
- ❌ Count ERROR messages
⚠️ Count WARNING messages- 🔐 Detect FAILED LOGIN attempts
- 🌐 Identify suspicious IP addresses
- 🎨 Colorized terminal output using Colorama
- 📑 Generate a TXT report
- 🌍 Generate a professional HTML report
- Python 3
- Colorama
- HTML5
- CSS3
Log-Analyzer/ │ ├── analyzer.py ├── sample.log ├── report.txt ├── report.html ├── README.md ├── requirements.txt └── images/ ├── terminal.png └── report.png
Clone the repository: git clone https://github.com/Mjdalturaysi/log-Analyzer
Move into the project folder: cd Log-Analyzer
Install dependencies: pip install -r requirements.txt
Run the analyzer: py analyzer.py
The program will:
- Read the log file
- Analyze events
- Display colored results in the terminal
- Generate report.txt
- Generate report.html
Reading log file... Analyzing logs...
Errors: 2 Warnings: 1 Failed Logins: 4
Suspicious IPs: 192.168.1.100 3
Generating report...
Done! HTML Report Created!
- Export reports as PDF
- Interactive dashboard
- Real-time log monitoring
- Charts and statistics
- Support for multiple log formats
Mjd Alturaysi
GitHub: https://github.com/Mjdalturaysi

