这是我的原始网络日志数据
172.22.49.45 [08/Sep/2015:00:27:17 +0800] "GET /tour/product/query HTTP/1.1" GET 200 4424 3
172.22.49.45 [08/Sep/2015:00:27:17 +0800] "GET /tour/product/query HTTP/1.1" GET 200 100 2
172.22.49.45 [08/Sep/2015:00:27:18 +0800] "GET /tour/product/query HTTP/1.1" GET 200 100 2
我想能够根据第二列的时间,按照小时时间窗统计不同的ip的次数,即输出格式为:例
00—01点: 172.22.49.45 100,求大神!!
以时间为key,,ip为值,建一个字典
能详细给小弟说下怎么实现么,最好能实现这一天24小时的 不同ip的总数,又能分开统计每小时ip的次数,谢谢啦