Find the most requested URLs in the access log
which page gets the most hits | top urls access log | most requested pages apache | what is being requested so often | awk | access-log | apache | nginxawk '{print $7}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20Prints the 20 most frequently requested paths with their count. Helpful with load problems to spot conspicuous targets such as xmlrpc.php, wp-login.php or a search URL. Query strings remain part of the URL, so the same page with different parameters is counted separately.
Note: To strip parameters, replace {print $7} with {split($7, u, "?"); print u[1]}.
Also searched as
- which page gets the most hits
- top urls access log
- most requested pages apache
- what is being requested so often