Skip to content

Instantly share code, notes, and snippets.

@pawel-dubiel
Created March 19, 2016 22:11
Show Gist options
  • Save pawel-dubiel/366c519d76aa6e1bf98a to your computer and use it in GitHub Desktop.
Save pawel-dubiel/366c519d76aa6e1bf98a to your computer and use it in GitHub Desktop.
Linux admin helper
get last top 10 ips from access log ( last 10000 requests )
tail -n 10000 access.log | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment