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.
- Reads a log file.
- Count the number of errors.
- Identify the most frequent IP addresses.
- Generates a report file automatically.
- Bash
- grep
- awk
- sort
- uniq
- pipes
- Linux command line
bash-log-analyzer | |---scripts/ | |---log_analyzer.sh | |---sample_logs/ | |---access.log | |---reports |---log_report.txt
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
This project demonstrates:
- Bash scripting basics
- Text processing with Linux tools
- Simple automation
- Log file analysis
- Basic DevOps style scripting
Alonso Solano Ramirez Learning Cloud / DevOps