diff options
author | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
---|---|---|
committer | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
commit | 772152a5810aa8c4e03cf167381aadc4ec00499f (patch) | |
tree | ba9418142f88622da878d9a3483c5da2da3e5c83 /check-archweb.sh | |
parent | 13eb2d51c7284472efabc278bf9b7ec0b8575e47 (diff) |
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 + |