Count requests per minute in the access log
when was the traffic spike | requests per minute from access log | count hits per minute | at what time did most requests come in | awk | access-log | load | statisticsawk '{print substr($4, 2, 17)}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20Extracts date, hour and minute from the timestamp ([09/Oct/2026:14:03:12) and counts the requests per minute. The 20 minutes with the most hits are shown. Useful for matching a load spike against cron jobs, backups or an attack.
Note: For a chronological timeline instead of a ranking, replace the final sort -rn | head -20 with sort -k2.
Also searched as
- when was the traffic spike
- requests per minute from access log
- count hits per minute
- at what time did most requests come in