Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 1.1 KB

File metadata and controls

81 lines (53 loc) · 1.1 KB

Bash Log Analyzer

A simple Bash project that analyzes web server logs and generates a summary report.

This project was built as part of a learning toward Cloud and DevOps roles.


Features

  • Reads a log file.
  • Count the number of errors.
  • Identify the most frequent IP addresses.
  • Generates a report file automatically.

Technologies Used

  • Bash
  • grep
  • awk
  • sort
  • uniq
  • pipes
  • Linux command line

Project Structure

bash-log-analyzer | |---scripts/ | |---log_analyzer.sh | |---sample_logs/ | |---access.log | |---reports |---log_report.txt


How to Run

Make the script executable:

chmod +x scripts/log_analyzer.sh

Run the analyzer:

./scripts/log_analyzer.sh sample_logs/access.log

Log Analysis Report

total Errors: 2

Top IP Addresses: 2 192.168.1.20 2 192.168.1.10 1 192.168.1.30


Learning Goals

This project demonstrates:

  • Bash scripting basics
  • Text processing with Linux tools
  • Simple automation
  • Log file analysis
  • Basic DevOps style scripting

Author

Alonso Solano Ramirez Learning Cloud / DevOps