Skip to content

Instantly share code, notes, and snippets.

@asmega
Created August 18, 2017 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asmega/297af8ab4dabfa5438649d65b82ee618 to your computer and use it in GitHub Desktop.
Save asmega/297af8ab4dabfa5438649d65b82ee618 to your computer and use it in GitHub Desktop.
nginx log - count unique ips
cat nginx.access.log | cut -d ' ' -f3 | sort | uniq -c | sort -r -g | head -n10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment