|
大家好啊,从网站的服务器上下载了www.abc.com_nginx.log
; i1 w7 O6 q4 L3 ?
: w: c/ E6 i' Q& Y P想看看log数据。
- N) {1 \9 c0 B! E9 {1 `8 Z) f3 n1 E! ^9 g! E# o7 [$ W
但是数据比较分散、杂乱:
& D+ Q0 i( J' `; H5 o; y2 }2 I: c
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)"
/ S* }. x( f0 J, |* u123.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)" V% V/ Y" t1 V9 q
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)"+ I; t9 i9 [) i: e
203.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)"6 p3 U) R3 B4 a) I
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"% C( g+ v3 U$ y3 d# b
203.208.60.105 - - [10/Aug/2019:06:25:14 +0800]
, {" r5 e8 i5 B2 k. [8 N; ~2 F& J1 ^+ a' K( |. a9 {
( z$ U* ?5 T# Q: X: w- f$ {% Y! c上面这种数据有几十M,我想按IP统计下,按照每个IP访问次数多少从高到低排列,并且显示每个IP访问的次数,要怎么弄呢?; Y$ ^6 J4 P+ Y% m; B1 Y) w
4 J. h% y8 h$ R# j% A
我之前见过别人的,但是不知道怎么弄?用notepad++还是excel统计呢?
$ e$ U( w: n0 `3 L' E2 p8 m
! D( {6 i* K' w! ^: G9 q7 o# L谢谢!@_@
) F( p5 m6 p% w9 z5 q2 l- I9 ]- z6 G8 {3 {: H t
" p( V9 _- B1 O
|
|