Skip to content

DipendraChandel/linux-log-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Linux Log Monitor

Python-based log monitoring system that parses Linux authentication logs (/var/log/auth.log) to detect failed and successful login attempts, and stores structured data in PostgreSQL for analysis. Designed for automation with cron jobs, modular Python scripts, and database integration.

Features

  • Parse authentication logs and extract timestamp, username, IP, and event type.
  • Insert structured log data into PostgreSQL.
  • Automate log monitoring using Linux cron jobs.
  • Modular and reusable Python scripts.

Tech Stack

  • Python 3 (Pandas, psycopg2)
  • PostgreSQL
  • Linux / Ubuntu
  • Cron

Setup

  1. Clone repo: git clone https://github.com/yourusername/linux-log-monitor.git
  2. Install dependencies: pip install pandas psycopg2-binary
  3. Configure PostgreSQL and update log_parser.py connection settings.
  4. Run script: sudo python3 log_parser.py
  5. Optional: automate via cron.

Feel free to contribute, suggest improvements, or help debug issues! Your contributions are welcome :D :D

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages