Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Analyze Apache log file - count every host

In this exercise we take a log file generated by a web server, and extend the previous exercise analyzing Apache log files.

The task is to write a scrip that will count how many requests came from each different IP address and then print them in descending order.

Solutions