|
大家好啊,从网站的服务器上下载了www.abc.com_nginx.log0 s4 y, Z. S l" d: }; H* v
) N& _! j( `/ o; N* t; F' F; o. a
想看看log数据。
: P+ H0 @8 d% M8 L o/ u7 F3 {
9 }+ `6 }* G3 z( c但是数据比较分散、杂乱:6 f9 R1 K& @( U' F& O: m$ {4 M9 c! c
% L" {5 _; _9 W9 _( W
203.208.60.10 - - [10/Aug/2019:06:25:06 +0800] "GET /pba.html HTTP/1.1" 200 17416 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"4 T0 f6 y: o. n
123.125.71.105 - - [10/Aug/2019:06:25:09 +0800] "GET /tag/forty-seven HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,like Gecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"& u w% s0 {0 W; v B4 P1 t9 |1 U. k
123.125.71.32 - - [10/Aug/2019:06:25:10 +0800] "GET /tag/forty-seven/ HTTP/1.1" 200 36940 "-" "Mozilla/5.0 (Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,like Gecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
6 d z9 O) f0 P203.208.60.124 - - [10/Aug/2019:06:25:10 +0800] "GET /cari.html HTTP/1.1" 200 13978 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)". \0 p- ~; @. Y# C9 h, k4 K
185.86.164.102 - - [10/Aug/2019:06:25:13 +0800] "GET /wp-login.php HTTP/1.1" 301 178 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"- g8 W* I l; m
203.208.60.105 - - [10/Aug/2019:06:25:14 +0800]
% `8 h' @. i9 j3 ~. K" x+ A& c: v
8 S1 b( M# f3 @8 ], n, q" c上面这种数据有几十M,我想按IP统计下,按照每个IP访问次数多少从高到低排列,并且显示每个IP访问的次数,要怎么弄呢?
% Q' r$ _7 i( e/ ^) W6 m
: ~+ M+ E- X4 @我之前见过别人的,但是不知道怎么弄?用notepad++还是excel统计呢?
) q- z$ U4 z9 c5 T$ x2 W( f" u/ W) O; ?# ^5 J& f! B
谢谢!@_@
# d2 h6 m' ^: Y$ @4 t( m- j! g
! H7 e9 ?. O% t4 x0 ~3 H3 r: K4 _. X( S' |/ h( ]# p' ?, l9 v
|
|