A hands-on repository documenting my learning journey in Bash scripting, Linux commands, log analysis, and system administration automation.
- Bash variables, arrays, loops, and conditional statements
- Linux commands:
find,grep,cat, andchmod - Log analysis and severity-based filtering
- Error counting and threshold-based warnings
- Practical shell scripting and automation
File: 03-log-analysis/analyse_logs.sh
A Bash script that:
- Finds recently modified log files
- Searches for
ERROR,FATAL, andCRITICALmessages - Displays matching log entries and counts
- Warns when a severity count exceeds a configured threshold
chmod +x 03-log-analysis/analyse_logs.sh
./03-log-analysis/analyse_logs.shUpdate the log directory in the script to match your local environment.
This repository will grow as I practice new Bash commands and build practical automation scripts.