Skip to content

AlonsoSolanoRamirez/bash-log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Bash log analyzer that parses web logs and generates a report of errors and top IP addresses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages