Analyse Access Log, find most common ip addresses


/ Published in: Bash
Save to your folder(s)

we grab the 3rd column (using awk), we sort all the results, we then unique that output (-c gives us a count), and then sort numerically based on the count

we also sort ascending (-r) ... the head then gives us the top 20 IP addresses

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.