This project is a basic web server log analyzer built using Python. It parses Apache access logs, extracts client IP addresses, and performs frequency analysis to identify the most active hosts.
- Reads Apache access log files
- Extracts IP addresses using regex
- Counts requests per IP
- Identifies the most active client host
- Python
- Regex (re module)
- Apache access log format
- Clone the repository
- Place your log file inside
sample_logs/ - Run: python analyzer.py
Most active IP: 192.168.1.10
Requests: 26
- Log parsing fundamentals
- Regex-based data extraction
- Dictionary-based aggregation
- Basic security log analysis workflow
- Detect suspicious IP patterns
- Add timestamp analysis
- Visualize traffic trends
- Integrate alerting logic