Skip to content

Sheersh123/bash-log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Š Log Analyzer & Error Report Generator

๐Ÿ” Overview

A Bash-based automation tool that parses system/application logs to detect errors, warnings, and critical events.
It generates structured reports and supports scheduling via cron, reducing manual log analysis efforts in IT operations.


๐Ÿš€ Problem it Solves

  • Large log files are difficult to scan manually.
  • Critical issues may be missed, causing downtime.
  • Businesses need automated, repeatable monitoring.

โœ” Automates error detection
โœ” Provides clear, timestamped reports
โœ” Easy to integrate into existing workflows


๐Ÿ›  Tools Used

  • Bash Scripting
  • Linux Utilities: grep, awk, sed, cut, sort, uniq, gzip
  • Cron Jobs โ†’ automation & scheduling
  • Git/GitHub โ†’ version control & portfolio showcase

๐Ÿ“… Agile Approach

The project is developed using Agile methodology with 4 sprints (12 days total).
Each sprint delivers incremental functionality, ensuring continuous progress and usable features.

๐Ÿ—‚ Sprint Breakdown

Sprint Duration Goals Deliverables
Sprint 1: Core Setup Days 1โ€“3 โ€ข Repository setup & docs
โ€ข Script skeleton
โ€ข Basic error filtering (ERROR, WARNING, CRITICAL)
โ€ข Error counts
โœ… Repo initialized
โœ… log_analyzer.sh skeleton
โœ… Basic filtering working
Sprint 2: Categorization Days 4โ€“6 โ€ข Extract timestamps
โ€ข Group by process/service
โ€ข Date/time filters
โ€ข CLI flags/options
โœ… Categorized logs
โœ… CLI usability improved
Sprint 3: Reporting Days 7โ€“9 โ€ข Generate structured reports (.txt / .csv)
โ€ข Timestamped filenames
โ€ข Top recurring errors
โ€ข Color-coded console output
โ€ข Report compression
โœ… Reports with insights
โœ… Compressed archives
Sprint 4: Automation & Polish Days 10โ€“12 โ€ข Automate daily execution with cron
โ€ข Log rotation
โ€ข Error handling
โ€ข Optional email reports
โ€ข Final documentation & screenshots
โœ… Automated daily runs
โœ… Polished docs
โœ… Portfolio-ready project

๐Ÿ“† Timeline

Day Task Sprint
1โ€“3 Core script & error counts Sprint 1
4โ€“6 Timestamps, filters, CLI options Sprint 2
7โ€“9 Reports, summaries, compression Sprint 3
10โ€“12 Automation, polish, final docs Sprint 4

โœ… Final Deliverables

  • log_analyzer.sh โ€“ Core script
  • Reports (.txt / .csv)
  • Automated daily runs via cron
  • Documentation (README + examples)

๐Ÿ”ฎ Future Enhancements

  • Integration with Splunk/ELK/Grafana for dashboards
  • Alerting via Slack/Email APIs
  • Support for JSON/structured logs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages