Created
April 4, 2011 10:05
-
-
Save timurb/901399 to your computer and use it in GitHub Desktop.
watch the users accessing our server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date ; tail -f access.log | ruby -a -n -e 'a||=[]; unless a.include?($F[-1]) then a.push $F[-1]; puts "#{Time.now} #{a.uniq.sort.inspect}"; end' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment