Interview practice question
Finding top IP addresses in access logs
Cloud & DevOps · Linux and Scripting · Intermediate
Your web server is under heavy traffic. How would you find the top 10 IP addresses hitting it from the access log?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- awk '{print $1}' access.log.
- Pipe to sort, uniq -c, sort -nr, head.
- Filter by time window.
- Check paths/user agents.
- Block abusive IPs.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.