summaryrefslogtreecommitdiff
path: root/check-archweb.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-10-01 20:35:47 +0000
committerdoc <doc@filenotfound.org>2025-10-01 20:35:47 +0000
commit772152a5810aa8c4e03cf167381aadc4ec00499f (patch)
treeba9418142f88622da878d9a3483c5da2da3e5c83 /check-archweb.sh
parent13eb2d51c7284472efabc278bf9b7ec0b8575e47 (diff)
mirror scriptsHEADmaster
Diffstat (limited to 'check-archweb.sh')
-rwxr-xr-xcheck-archweb.sh20
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
+