Python开发程序:生产环境下实时统计网站访问日志信息
日志实时分析系统
生产环境下有需求:要每搁五分钟统计下这段时间内的网站访问量、UV、独立IP等信息,用直观的数据表格表现出来
环境描述:
网站为Nginx服务,系统每日凌晨会对日志进行分割,拷贝到其他位置,当前日志清空
NGINX日志配置信息:
http {
log_format main '$remote_addr - [$time_local] "$request" '
' - $status "User_Cookie:$guid" ';
} server {
if ($http_cookie ~* "(.*)$"){
#if ($http_cookie ~* "JCRB_VOTE=([A-Z0-9]*)"){
set $guid $1;
}
} 日志只统计:客户IP、访问时间、请求路径、状态码、客户端缓存
日志access.log示例
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104291798 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104283738 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104283903 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104283995 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104292817 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
121.28.161.2 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=XC9EHH&voteString=2|14|29|31|33|&keyString=xmtwb2016&jsoncallback=jQuery18008703299721237272_1479104243850&_=1479104285026 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=211799D6E388EC17CC4B0F5353424F04"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
101.27.93.120 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=99U4R3&voteString=0|1|2|3|4|&keyString=xmtwb2016&jsoncallback=jQuery180026725079771131277_1479104393301&_=1479104413870 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=55CA71DFC55332CDC978091D5787E328"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104285036 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104285194 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104285303 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104293800 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
101.27.93.130 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=wvt2qr&voteString=2|7|15|21|23|&keyString=xmtwb2016&jsoncallback=jQuery18006269013724414528_1479104280845&_=1479104296352 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8AFB9444EE47A0BA61F01CE62AC641F5"
101.27.93.130 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=wvt2qr&voteString=1|11|12|22|27|&keyString=xmtwx2016&jsoncallback=jQuery18006269013724414528_1479104280845&_=1479104296404 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8AFB9444EE47A0BA61F01CE62AC641F5"
101.27.93.130 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=wvt2qr&voteString=1|30|37|38|39|&keyString=xmtgx2016&jsoncallback=jQuery18006269013724414528_1479104280845&_=1479104296451 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8AFB9444EE47A0BA61F01CE62AC641F5"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtwx2016&jsoncallback=jQuery18008259619923322621_1479104293001&_=1479104294141 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtwb2016&jsoncallback=jQuery18008259619923322621_1479104293000&_=1479104294139 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmttth2016&jsoncallback=jQuery18008259619923322621_1479104293002&_=1479104294142 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtzp2016&jsoncallback=jQuery18008259619923322621_1479104293003&_=1479104294144 HTTP/1.1" - 200 "User_Cookie:"
121.28.161.2 - [14/Nov/2016:14:19:37 +0800] "GET /captcha HTTP/1.1" - 200 "User_Cookie:JSESSIONID=211799D6E388EC17CC4B0F5353424F04"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtzmt2016&jsoncallback=jQuery18008259619923322621_1479104293004&_=1479104294145 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtgx2016&jsoncallback=jQuery18008259619923322621_1479104293005&_=1479104294146 HTTP/1.1" - 200 "User_Cookie:"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104294806 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
183.207.217.213 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104286275 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
101.27.93.120 - [14/Nov/2016:14:19:38 +0800] "GET /captcha HTTP/1.1" - 200 "User_Cookie:JSESSIONID=55CA71DFC55332CDC978091D5787E328"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104286451 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.192.216.166 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=8lrg49&voteString=1|2|3|6|11|16|21|27|37|&keyString=xmtwx2016&jsoncallback=jQuery18005909615200944245_1479104270260&_=1479104303736 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=9D2FE299B5042B989382AA82B56A8506"
183.207.217.213 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104286622 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104295808 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104287539 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104287697 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104287785 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
117.136.2.149 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=cwp238&voteString=2|13|18|23|28|&keyString=xmtwb2016&jsoncallback=jQuery18004623273138422519_1479104263786&_=1479104281947 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=BF38C42EF499AAACB05A6EA87E3B1EB9"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104296807 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.192.216.166 - [14/Nov/2016:14:19:40 +0800] "GET /captcha HTTP/1.1" - 200 "User_Cookie:JSESSIONID=9D2FE299B5042B989382AA82B56A8506"
183.207.217.213 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104288831 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104288992 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104289087 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104297802 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
60.31.197.14 - [14/Nov/2016:14:19:41 +0800] "GET /captcha?0.9926116424744409 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=DB00034D5EC927BE007CE54F3D67587D"
221.1.204.218 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104291798 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104283738 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104283903 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:35 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104283995 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104292817 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
121.28.161.2 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=XC9EHH&voteString=2|14|29|31|33|&keyString=xmtwb2016&jsoncallback=jQuery18008703299721237272_1479104243850&_=1479104285026 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=211799D6E388EC17CC4B0F5353424F04"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
101.27.93.120 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=99U4R3&voteString=0|1|2|3|4|&keyString=xmtwb2016&jsoncallback=jQuery180026725079771131277_1479104393301&_=1479104413870 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=55CA71DFC55332CDC978091D5787E328"
221.1.204.218 - [14/Nov/2016:14:19:36 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104285036 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104285194 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104285303 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104293800 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
101.27.93.130 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=wvt2qr&voteString=2|7|15|21|23|&keyString=xmtwb2016&jsoncallback=jQuery18006269013724414528_1479104280845&_=1479104296352 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8AFB9444EE47A0BA61F01CE62AC641F5"
101.27.93.130 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=wvt2qr&voteString=1|11|12|22|27|&keyString=xmtwx2016&jsoncallback=jQuery18006269013724414528_1479104280845&_=1479104296404 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8AFB9444EE47A0BA61F01CE62AC641F5"
101.27.93.130 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=wvt2qr&voteString=1|30|37|38|39|&keyString=xmtgx2016&jsoncallback=jQuery18006269013724414528_1479104280845&_=1479104296451 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8AFB9444EE47A0BA61F01CE62AC641F5"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtwx2016&jsoncallback=jQuery18008259619923322621_1479104293001&_=1479104294141 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtwb2016&jsoncallback=jQuery18008259619923322621_1479104293000&_=1479104294139 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmttth2016&jsoncallback=jQuery18008259619923322621_1479104293002&_=1479104294142 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtzp2016&jsoncallback=jQuery18008259619923322621_1479104293003&_=1479104294144 HTTP/1.1" - 200 "User_Cookie:"
121.28.161.2 - [14/Nov/2016:14:19:37 +0800] "GET /captcha HTTP/1.1" - 200 "User_Cookie:JSESSIONID=211799D6E388EC17CC4B0F5353424F04"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtzmt2016&jsoncallback=jQuery18008259619923322621_1479104293004&_=1479104294145 HTTP/1.1" - 200 "User_Cookie:"
222.219.53.119 - [14/Nov/2016:14:19:37 +0800] "GET /result?keyString=xmtgx2016&jsoncallback=jQuery18008259619923322621_1479104293005&_=1479104294146 HTTP/1.1" - 200 "User_Cookie:"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:37 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104294806 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
183.207.217.213 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104286275 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
101.27.93.120 - [14/Nov/2016:14:19:38 +0800] "GET /captcha HTTP/1.1" - 200 "User_Cookie:JSESSIONID=55CA71DFC55332CDC978091D5787E328"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104286451 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.192.216.166 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=8lrg49&voteString=1|2|3|6|11|16|21|27|37|&keyString=xmtwx2016&jsoncallback=jQuery18005909615200944245_1479104270260&_=1479104303736 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=9D2FE299B5042B989382AA82B56A8506"
183.207.217.213 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104286622 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:38 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104295808 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104287539 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104287697 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104287785 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:39 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
117.136.2.149 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=cwp238&voteString=2|13|18|23|28|&keyString=xmtwb2016&jsoncallback=jQuery18004623273138422519_1479104263786&_=1479104281947 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=BF38C42EF499AAACB05A6EA87E3B1EB9"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104296807 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.192.216.166 - [14/Nov/2016:14:19:40 +0800] "GET /captcha HTTP/1.1" - 200 "User_Cookie:JSESSIONID=9D2FE299B5042B989382AA82B56A8506"
183.207.217.213 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=UUFSBD&voteString=7|9|16|27|37|&keyString=xmtwb2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104288831 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
183.207.217.213 - [14/Nov/2016:14:19:40 +0800] "GET /vote?captcha=UUFSBD&voteString=5|7|29|37|39|&keyString=xmtwx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104288992 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
183.207.217.213 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=UUFSBD&voteString=3|6|10|13|23|&keyString=xmtgx2016&jsoncallback=jQuery180009671276737935841_1479103609944&_=1479104289087 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=D87A6A561C05BF969F4FF425605A2A1E"
221.1.204.218 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
221.1.204.218 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 503 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
222.219.53.119 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=ech568&voteString=25|26|30|31|32|&keyString=xmtwb2016&jsoncallback=jQuery180011070688814614982_1479104232505&_=1479104297802 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=8C09C2378073EF08B7EB09946932A516"
60.31.197.14 - [14/Nov/2016:14:19:41 +0800] "GET /captcha?0.9926116424744409 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=DB00034D5EC927BE007CE54F3D67587D"
221.1.204.218 - [14/Nov/2016:14:19:41 +0800] "GET /vote?captcha=2RNBVC&voteString=14|14|3|1|14|4|14|13|14|&keyString=xmtwx2016&jsoncallback=jQuery18008265754313951313_1479103527546&_=1479103570861 HTTP/1.1" - 200 "User_Cookie:JSESSIONID=EF33AF20138880201DFA0AB1C756F743"
access.log
程序目录结构:
html目录(最终生成的数据页面,也是网页的初始样式):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>日志分析</title>
<meta http-equiv="Refresh" Content=""/>
<style>
body{
margin: 0 auto;
background-color: #797878;
}
div{
width: 60%;
margin: auto;
/*border: 1px solid black;*/
border-radius:5px
}
table{
width: 100%;
text-align: center;
background-color:#dddddd
}
.table_top{
width: 100%;
background-color: #2459a2;
color: white;
font-weight: bold;
} </style>
</head>
<body>
<div>
</div>
<div style="height: 1000px; "></div>
</body>
</html>
index.html
main目录(程序启动接口):
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#-Author-Lian import time,datetime
import re LOG_PATH="/data/nginx/logs/access.log" #日志文件
HTML_PATH="../html/index.html" #生成数据html文件
TABLE_TMP="../template/table_tmp" #表格框架格式
TIMES_PRE=300 #刷新频率 单位秒 def handle():
date_time = datetime.datetime.now()
current_date = str(date_time).split(" ")[0] #获取当前日期 年-月-日
create_table(current_date) #创建信息表单 last_site = 0 #上一次文件读到的位置
while True:
page_view = 0 #页面访问量
succed_visit = 0 # 200状态码
reject_visit = 0 # 被拒绝的访问503状态码
unique_ip = set([]) # 独立IP
unique_visitor= set([]) # 独立访客 date_time = datetime.datetime.now() # 生成时间日期
date = str(date_time).split(" ")[0] # 截取当前日期 年-月-日
if date != current_date: # 如果第二天,光标位置重新设置到文件首部
current_date = date # 更新current_date 值
last_site = 0
create_table(current_date) # 创建信息表单 current_time = str(date_time).split(".")[0] # 日期 年-月-日-时-分-秒 with open(LOG_PATH,"r") as file:
print("---------",current_date,last_site)
file.seek(last_site)
logs = file.readlines()
last_site = file.tell() # 更新光标位置
for line in logs:
page_view += 1 # 页面访问量+1
obj_sd=re.search("- 200",line) # 匹配200状态码+1
if obj_sd:
succed_visit +=1
obj_rt = re.search("- 503", line) # 匹配503状态码+1
if obj_rt:
reject_visit +=1 obj_ip = re.match("\d+\.\d+\.\d+\.\d+",line) # 匹配独立IP
unique_ip.add(obj_ip.group()) # 添加集合,自动去重 obj_uv = re.search("User_Cookie:...*", line) # 匹配独立访客
if obj_uv: # 去空
unique_visitor.add(obj_uv.group()) # 添加集合,自动去重 upload_data(current_time,page_view,succed_visit,reject_visit,len(unique_ip),len(unique_visitor)) #html文件内添加统计数据
time.sleep(TIMES_PRE) def upload_data(current_time,page_view,succed_visit,reject_visit,unique_ip,unique_visitor):
with open(HTML_PATH, "r+",encoding="utf-8") as file:
list = file.readlines() list.insert(-6,"<tr>\n")
list.insert(-6, "<td>%s</td>\n"%current_time) #时间
list.insert(-6, "<td>%s</td>\n"%page_view) #页面访问量
list.insert(-6, "<td>%s</td>\n" % succed_visit) # 200访问
list.insert(-6, "<td>%s</td>\n" % reject_visit) # 503访问
list.insert(-6, "<td>%s</td>\n" % unique_ip) # 独立IP数
list.insert(-6, "<td>%s</td>\n" % unique_visitor) # 独立访客数
list.insert(-6,"</tr>\n") file.seek(0) #文件清空
file.truncate(0)
for line in list: #新数据写入文件
file.write(line) def create_table(current_date): #创建信息表单
with open(HTML_PATH, "r+", encoding="utf-8") as file:
list = file.readlines() with open(TABLE_TMP, "r", encoding="utf-8") as table_tmp:
for line in table_tmp:
if "日期" in line:
line = line.replace("日期","日期:%s"%current_date)
list.insert(-4, line) # 创建新的表单 file.seek(0) #文件清空
file.truncate(0)
for line in list: #新数据写入文件
file.write(line) if __name__ == '__main__':
handle()
start.py
template(表格模板):
<table border="">
<thead>
<tr>
<td class="table_top" colspan="" >日期</td>
</tr>
<tr>
<td style="width: 25%">时间</td>
<td style="width: 15%">页面浏览量</td>
<td style="width: 15%">200状态码</td>
<td style="width: 15%">503状态码</td>
<td style="width: 15%">独立IP数</td>
<td style="width: 15%">独立访客数</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
table_tmp
注:table_tmp最后一行一定要一换行符
最终效果图:
总结:
整个程序可以针对不同的日志类型进行增加删减,程序也可以作为以后开发监控系统其中网站监测的一个模块
完整程序代码-》》https://coding.net/u/James_Lian/p/LogAnalysis/git/tree/master/
Python开发程序:生产环境下实时统计网站访问日志信息的更多相关文章
- Python开发【项目】:生产环境下实时统计网站访问日志信息
日志实时分析系统 生产环境下有需求:要每搁五分钟统计下这段时间内的网站访问量.UV.独立IP等信息,用直观的数据表格表现出来 环境描述: 网站为Nginx服务,系统每日凌晨会对日志进行分割,拷贝到其他 ...
- Mysql迁移工具在生产环境下的使用
在产品迭代开发发布过程中,由于业务需求的增加,数据库难免会有结构调整等操作. 在每个版本发布过程中怎么控制每个版本server端程序与数据库版本保持一致,以及数 据库升级.回滚等操作. 本博文宅鸟将向 ...
- 生产环境下JAVA进程高CPU占用故障排查
问题描述:生产环境下的某台tomcat7服务器,在刚发布时的时候一切都很正常,在运行一段时间后就出现CPU占用很高的问题,基本上是负载一天比一天高. 问题分析:1,程序属于CPU密集型,和开发沟通过, ...
- Node JS后端项目开发与生产环境总结
原文地址:Node JS后端项目开发与生产环境总结 Node JS常用后端框架有express.koa.sails.国产框架有个egg js,已经在cnode投入生产了,还有个think js,类似t ...
- spring boot--日志、开发和生产环境切换、自定义配置(环境变量)
Spring Boot日志常用配置: # 日志输出的地址:Spring Boot默认并没有进行文件输出,只在控制台中进行了打印 logging.file=/home/zhou # 日志级别 debug ...
- 生产环境下JAVA进程高CPU占用故障排查---temp
问题描述:生产环境下的某台tomcat7服务器,在刚发布时的时候一切都很正常,在运行一段时间后就出现CPU占用很高的问题,基本上是负载一天比一天高. 问题分析:1,程序属于CPU密集型,和开发沟通过, ...
- Java生产环境下性能监控与调优详解视频教程 百度云 网盘
集数合计:9章Java视频教程详情描述:A0193<Java生产环境下性能监控与调优详解视频教程>软件开发只是第一步,上线后的性能监控与调优才是更为重要的一步本课程将为你讲解如何在生产环境 ...
- Maven_如何为开发和生产环境建立不同的配置文件 --我的简洁方案
其实也是最近才看Maven, 以前都是用ant+ivy, 对于轻量级的项目来说足够了, 而且非常灵活. 看了看Maven, 约定.... 现在编程都说约定, 约定是挺好, 问题是超出约定的事情太多了, ...
- 一次生产环境下MongoDB备份还原数据
最近开发一个版本的功能当中用到了MongoDB分页,懒于造数据,于是就研究了下从生产环境上导出数据到本地来进行测试. 研究了一下,发现MongoDB的备份还原和MySQL语法还挺类似,下面请看详细介绍 ...
随机推荐
- Linux常用命令学习8---(用户和用户组管理)
1.用户和用户组 用户和用户组概念 用户:使用操作系统的人(Linux支持多个用户在同一时间登陆同一个操作系统) 用户组:具有相同权限的一组用户(Linux系统中可 ...
- HDU3571 N-dimensional Sphere(高斯消元 同模方程)
每个点到中心距离相等,以第0个点为参考,其他n个点到中心距等于点0到中心距,故可列n个方程 列出等式后二次未知数相消,得到线性方程组 将每个数加上1e17,求答案是再减去,求解时对一个2 * (1e1 ...
- 浅析python 中__name__ = '__main__' 的作用
引用http://www.jb51.net/article/51892.htm 很多新手刚开始学习python的时候经常会看到python 中__name__ = \'__main__\' 这样的代码 ...
- 数据库错误:check the manual that corresponds to your MySQL server version for the right sy
检查对应到您的MySQL服务器版本附近使用正确的语法手册 数据库插入的时候出现上述问题,总结了两方面原因: 1.语法错误,这是百度之得到的大部分结果,但是没有解决我的问题 2.仔细观察我的sql语句, ...
- 【dom4j xml】使用dom4j处理XML文件--测试过程遇到的问题
首先 关于dom4j的API,有如下: 当然 其中的实体引用有以下: 测试使用环境: 使用Maven搭建web环境,pom.xml文件配置如下: <project xmlns="ht ...
- 2015ACM/ICPC亚洲区上海站
5573 Binary Tree(构造) 题意:给你一个二叉树,根节点为1,子节点为父节点的2倍和2倍+1,从根节点开始依次向下走k层,问如何走使得将路径上的数进行加减最终结果得到n. 联想到二进制. ...
- jqGrid配置属性说明
Property Type Description Default1) ajaxGridOptions object This option allows to set global ajax set ...
- 如何在UMG蓝图中动态创建控件
把控件作为UObject即可,在c++中则使用NewObject函数
- [Python学习] python 科学计算库NumPy—矩阵运算
NumPy库的核心是矩阵及其运算. 使用array()函数可以将python的array_like数据转变成数组形式,使用matrix()函数转变成矩阵形式. 基于习惯,在实际使用中较常用array而 ...
- OpenSceneGraph控制模型
OpenSceneGraph控制模型 转自:http://www.cppblog.com/eryar/archive/2012/05/28/176538.html 一.简介 对模型的控制就是修改模型的 ...