blob: c46adb6d3f6715edf043925dc7bc272998fa06a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|