Skip to content

Instantly share code, notes, and snippets.

@dcosson
Created October 5, 2012 13:20
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 dcosson/3839768 to your computer and use it in GitHub Desktop.
Save dcosson/3839768 to your computer and use it in GitHub Desktop.
Count viewers on a mongrel2 site
# bash command to count the number of unique ip addresses in the mongrel2 access log (default format)
cat mongrel2.access.log | cut -f 4 -d : | cut -f 1 -d , | sort | uniq | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment