Sorting 404s in Nginx access Logs
The default Nginx logs can be combined and sorted to gather some useful stats. Make a working directory and copy current logs over (optional):mkdir ~/accesslogssudo cp /var/log/nginx/access.log* ~/accesslogscd ~/accesslogs Extract logs compressed by log rotate:ungzip *.gz Make a big combined log:sudo cat access.log* >> log.combined Parse the combined log and count the 404’s sudo awk … Continue reading Sorting 404s in Nginx access Logs
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed