Search for '{{search_term}}'

Exercise: Analyze Apache log file - count every host

CMOS is the Code-Maven Open Source podcast that also includes video interviews. Subscribe to this feed RSS feed with your Podcast listener app or via iTunes iTunes.

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.



In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus