Advertisement
PalmaSolutions

find top users from access log

Dec 28th, 2018
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. # sort access log and find top users:
  2. # https://www.mariusv.com/sort-web-server-logs-to-find-top-users
  3.  
  4. cat /path/to/access.log | awk '{print $1}' | sort | uniq -c | sort -n | tail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement