Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Log Analyzer

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.


✨ Features

  • 📄 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

🛠 Technologies Used

  • Python 3
  • Colorama
  • HTML5
  • CSS3

📂 Project Structure

Log-Analyzer/ │ ├── analyzer.py ├── sample.log ├── report.txt ├── report.html ├── README.md ├── requirements.txt └── images/ ├── terminal.png └── report.png


🚀 Installation

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


▶️ Usage

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

📊 Example Output

======================================== LOG ANALYZER v1.0

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!


📸 Screenshots

💻 Terminal Output

Terminal

🌍 HTML Report

HTML Report


🎯 Future Improvements

  • Export reports as PDF
  • Interactive dashboard
  • Real-time log monitoring
  • Charts and statistics
  • Support for multiple log formats

👨‍💻 Author

Mjd Alturaysi

GitHub: https://github.com/Mjdalturaysi

About

Python-based log analysis tool that detects errors, warnings, failed logins, suspicious IPs, and generates TXT & HTML reports.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages