|
大家好啊,从网站的服务器上下载了www.abc.com_nginx.log
. K4 m+ }2 E' l4 {1 y" ~# `0 `7 n' ?$ {& ^3 e
想看看log数据。( N. N1 V3 T( ^3 y3 U4 `
+ e* Z" j; z* H: ?/ x但是数据比较分散、杂乱:2 S: u, C% D; b, s# D! G3 D5 r. T
( j9 i4 P; P+ l+ d- l' m
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)": C: r/ y) N7 W9 ^
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)"
- _6 m) m( i. H* j6 a& l$ T6 L) }/ p123.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)"
# Y& H* C4 I' V A1 y% n203.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)"4 X; g D2 Q1 L, a0 y1 l
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"2 c$ D8 U( Q K! F
203.208.60.105 - - [10/Aug/2019:06:25:14 +0800]
0 q( N# u4 g+ B) d4 D6 c! Z1 @0 [, d. i6 s
6 ?" F( [% h5 L2 B
上面这种数据有几十M,我想按IP统计下,按照每个IP访问次数多少从高到低排列,并且显示每个IP访问的次数,要怎么弄呢?# l7 Z0 ]# c: Y& u! e2 e$ [
1 A; S+ X9 d% j% A+ K+ w
我之前见过别人的,但是不知道怎么弄?用notepad++还是excel统计呢?
# H1 b1 d) _, g$ Q. o& `. X( L1 k# i; H/ a
谢谢!@_@" W5 {% [% C6 u$ h& u2 b
% l: s* C) b! m: q, {
4 X% L: W/ l U2 V0 ?. i |
|