Skip to content

About

A beginner-friendly Python tool that analyzes log files, detects failed login attempts, and identifies suspicious IP addresses. Built to understand log analysis and security monitoring fundamentals.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸ›‘οΈ Python Log Analyzer

A Python-based log analysis tool that detects suspicious login activity by parsing system logs and identifying repeated failed login attempts from IP addresses.


πŸ“Œ Project Purpose

This project simulates how security analysts monitor logs to detect potential brute-force attacks or unauthorized access attempts.

It reads log files, extracts important data, and generates a security report.


βš™οΈ Features

βœ” Extracts IP addresses from logs
βœ” Detects failed login attempts
βœ” Counts failures per IP
βœ” Generates a summary report
βœ” Uses regex for pattern detection


🧠 Concepts Used

  • Python File Handling
  • Regular Expressions (re)
  • Dictionaries & Loops
  • Modular Programming
  • Basic Security Log Analysis

πŸ“‚ Project Structure

log_analyzer/
β”‚
β”œβ”€β”€ main.py       # Runs the program
β”œβ”€β”€ analyzer.py   # Log parsing logic
β”œβ”€β”€ utils.py      # Helper functions
β”œβ”€β”€ log.txt       # Sample log file
β”œβ”€β”€ report.txt    # Generated report

---

## ▢️ How to Run

```bash
python main.py

About

A beginner-friendly Python tool that analyzes log files, detects failed login attempts, and identifies suspicious IP addresses. Built to understand log analysis and security monitoring fundamentals.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages