Access.log:
192.168.1.247--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.246--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.245--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.243--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.247--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.247--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.245--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.246--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.246--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.247--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.245--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.245--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.246--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.243--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
192.168.1.247--[02/[ul/2015:23:44:59 [0800] "GET/[http/1.1 200 19"
Answer:
[[email protected] shell]$ awk ' {print $} ' Access.log |sort-n|uniq-c|sort-rn|head
5 192.168.1.247
4 192.168.1.246
4 192.168.1.245
2 192.168.1.243
This article from the "Linux" blog, reproduced please contact the author!
Access log access.log statistics IP and number of visits per address