Skip to content

Instantly share code, notes, and snippets.

@rossnz
Created January 20, 2014 13:22
Show Gist options
  • Save rossnz/8519752 to your computer and use it in GitHub Desktop.
Save rossnz/8519752 to your computer and use it in GitHub Desktop.
List most active Nginx sites, for when you deploy Nginx as a forward proxy
cat /var/log/nginx/access.log | awk '$9 ~ "200" {print $2}' | sort | uniq -c | sort -hr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment