Find top sites by requests over a time period:
1 2 |
for file in /var/www/vhosts/*/logs/access_ssl_log; do \ echo "$file: $(grep -c 'DD/MMM/YYYY:HH:MM' "$file")"; done | sort -t: -k2 -nr |
Replace “DD/MMM/YYYY:HH:MM” with desired period like “01/Aug/2024:15”.