Grep Log Errors and Alert Shell Script (grep, Slack or Email)
Scan Linux log files for ERROR or CRIT lines with a Bash script: tail window, grep patterns, webhook…
Read tutorial →Browse step-by-step tutorials in this topic.
Scan Linux log files for ERROR or CRIT lines with a Bash script: tail window, grep patterns, webhook…
Read tutorial →
Backup directories to Amazon S3 with a Bash script: aws s3 sync, IAM role or profile, exclude patterns,…
Read tutorial →
Build a Bash case statement script for Linux ops: status, reload, logs subcommands, validate input, usage text, and…
Read tutorial →
Alert when Linux disk usage crosses a threshold: parse df -P, email warning with df output, per-mount limits,…
Read tutorial →
Monitor remote hosts with a Bash ping script: packet loss threshold, email when down, cooldown between alerts, and…
Read tutorial →
Use a Bash script with pgrep to verify nginx, mysqld, or any daemon is running — exit 1…
Read tutorial →
Backup a Linux directory with tar.gz in a shell script: timestamped archives, optional exclude patterns, test tarball integrity,…
Read tutorial →
Monitor Linux load average with a Bash script: compare to CPU count, email when hot, attach top snapshot,…
Read tutorial →
Delete old files safely on Linux with a Bash script: find -mtime retention, DRY_RUN preview, path allowlist, log…
Read tutorial →
Block until a TCP port is open on Linux: Bash wait-for-port script with timeout, sleep interval, and use…
Read tutorial →