I'm trying to figure out how I can get a request count
per CIDR/24 from an apache log in combined format - eg:
Code:
24.147.44.122 - frank [10/Oct/2011:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"
I'm stuck using BASH for this and I generally write everything in Python, or even Perl if necessary so BASH isn't the most comfortable for me.
I've got enough to extract the IPs and get a count I just need a slick way to come up with a sum on a per CIDR basis.