diff options
Diffstat (limited to 'check-archweb.sh')
| -rwxr-xr-x | check-archweb.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/check-archweb.sh b/check-archweb.sh new file mode 100755 index 0000000..c46adb6 --- /dev/null +++ b/check-archweb.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# check-archweb.sh +# Quick filter for Archweb IPv6 probes against /lastupdate +# + +LOG=/var/log/nginx/stygian_access.log + +if [[ ! -f "$LOG" ]]; then + echo "Log file not found: $LOG" + exit 1 +fi + +echo "=== IPv6 Archweb checks for /lastupdate ===" +sudo awk ' + $1 ~ /\[::/ && $7 ~ /lastupdate/ { + printf "%-40s %-30s %-5s %-40s %s\n", $1, $4, $6, $7, $9 + } +' "$LOG" | tail -20 + |
