1、写一个脚本getinterface.sh,脚本可以接受参数(i,I,a),完成以下任务:
   (1)使用以下形式:getinterface.sh [-i interface|-I IP|-a]
   (2)当用户使用-i选项时,显示其指定网卡的IP地址;
   (3)当用户使用-I选项时,显示其后面的IP地址所属的网络接口;(如 192.168.199.183:eth0)   (4)当用户单独使用-a选项时,显示所有网络接口及其IP地址(lo除外)

Getinterface.sh脚本代码如下:

#!/bin/bash
#echo $1
#echo $2' arg2=`echo $2 | sed 's/]//'`
#echo $arg2 if [ "$1" == '[-i' ];then
if `ifconfig | grep $arg2 &> /dev/null`; then
echo "Ip for $arg2 is:"`ifconfig $arg2 | grep "inet addr" | awk '{print $2}' | awk -F: '{print $2}'`
else
echo "No this interface, please input again."
fi
elif [ "$1" == '[-I' ];then
if `ifconfig | grep $arg2 &> /dev/null`; then
echo $arg2:`ip addr show | grep $arg2 | awk '{print $7}'`
else
echo "No this ip address, please input again."
fi
elif [ "$1" == '[-a]' ];then
jiekou=`ifconfig | grep "Link encap" | awk '{print $1}' | grep -v "lo"`
echo $jiekou:`ifconfig $jiekou | grep "inet addr" | awk '{print $2}' | awk -F: '{print $2}'` else
echo "you input error command. Please input as getinterface.sh [-i interface|-I IP|-a]"
fi

2、写一个脚本analyzelog.sh,完成日志分析:(使用函数)(日志文件在课件中)
说明:此脚本可以接受选项(i,d,t,a),使用格式:analyzelog.sh <-i IP|-d DATE|-t TYPE|-a> 日志文件名 :
先判断是访问日志文件还是错误日志文件
访问日志文件如下:
   (1)当用户使用选项-i时,统计出访问日志文件中指定IP地址的访问次数(通常每一行为一次);
   (2)当用户使用选项-d时,统计出访问日志文件中指定日期(某一天,如:04/May/2015)内每个IP地址访问的次数;如:
    192.168.0.1:33
    192.168.0.195:17
    ...
   (3)当用户使用选项-t时,统计出访问日志文件中以后缀后指定类型的文件(如.png表示png格式的图片)被访问的次数;
   (4)当用户使用选项-a时,统计出访问日志文件中每个IP地址访问的次数;

错误日志文件日下:
   (1)当用户使用选项-i时,统计出错误日志文件中指定IP地址的访问次数(通常每一行为一次);
   (2)当用户使用选项-d时,统计出错误日志文件中指定日期(某一天,如:2015/05/04)内每个IP地址访问的次数;如:
    192.168.0.1:33
    192.168.0.195:17
    ...
   (3)当用户使用选项-t时,统计出错误日志文件中GET获取失败的次数(就是一行错误信息中包含GET);
   (4)当用户使用选项-a时,统计出错误日志文件中每个IP地址访问的次数;

analyzelog.sh代码如下:

#!/bin/bash
#echo "1: $1"
#echo "2: $2"
#echo "3: $3"
#echo "Count for args is: $#" arg2=`echo $2 | sed 's/]//'`
#echo $arg2 getIp()
{
#echo "Count for args in getIp is: $#"
#awk '{ip[$1]++}END{for(i in ip){print i}}' access.log > ip
if [ $# -eq 2 ];then
if [ "$2" == "access.log" ];then
grep "$1" $2 | awk '/^[0-9]/{print $1}' | sort -u > ip
elif [ "$2" == "error.log" ];then
awk '{print $16}' $2 | sed 's/,//' | sort -u > ip
else
echo "Can.t find the log file, please check again."
fi
else
if [ "$1" == "access.log" ];then
awk '/^[0-9]/{print $1}' $1 | sort -u > ip
elif [ "$1" == "error.log" ];then
awk '{print $16}' $1 | sed 's/,//' | sort -u > ip
else
echo "Can.t find the log file, please check again."
fi
fi
ip_count=`cat ip | wc -l` #把每个ip的记录提取出来
for((i=1;i<=$ip_count;i++));
do
#逐一取出各个ip
one_ip=`sed -n "$i"p ip` #根据ip筛选出属于此ip的报告记录,并统计报告次数
list_count=`grep "$one_ip" access.log | wc -l` #将每个ip的报告总次数写入行首
sed -i "$i{s/^/ $list_count /}" ip &> /dev/null done
} choice()
{
#echo "The file is $3" if [ "$1" == '[-i' ]; then
#echo "[-i $2"
echo "Access count for $arg2 is: "`grep $2 $3 | wc -l`
elif [ "$1" == '[-d' ]; then
#echo "[-d $2"
getIp $2 $3;
#echo `awk '{printf "%20s:%-20s\n\n",$2,$1}' ip
awk '{print $2,$1}' ip | sed 's/ /:/' elif [ "$1" == '[-t' ]; then
#echo "[-t $2"
echo "Access count for $2 is: "`grep $2 $3 | wc -l`
else
echo "Error command, please check."
fi
} choice_2()
{
#echo "The file is $1"
getIp $1;
awk '{print $2,$1}' ip | sed 's/ /:/'
} if [ $# -eq 3 ];then
choice $1 $arg2 $3;
elif [ $# -eq 2 ]; then
choice_2 $2;
else
echo "Error args, please check again."
fi

其中的access.log文件内容如下:

192.168.199.244 - - [04/May/2015:11:04:49 -0400] "GET / HTTP/1.1" 200 3698 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:49 -0400] "GET /nginx-logo.png HTTP/1.1" 200 370 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:49 -0400] "GET /poweredby.png HTTP/1.1" 200 3034 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:49 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:52 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:54 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:56 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:57 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:57 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:58 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:04:59 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:05:00 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:05:01 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:05:02 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:05:09 -0400] "-" 400 0 "-" "-" "-"
192.168.199.244 - - [04/May/2015:11:05:09 -0400] "-" 400 0 "-" "-" "-"
192.168.199.244 - - [04/May/2015:11:06:12 -0400] "GET / HTTP/1.1" 200 3698 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:06:12 -0400] "GET /nginx-logo.png HTTP/1.1" 200 370 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:06:12 -0400] "GET /poweredby.png HTTP/1.1" 200 3034 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:06:12 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:06:22 -0400] "-" 400 0 "-" "-" "-"
192.168.199.244 - - [04/May/2015:11:06:22 -0400] "-" 400 0 "-" "-" "-"
192.168.199.183 - - [04/May/2015:11:06:33 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.180 - - [04/May/2015:11:07:12 -0400] "GET / HTTP/1.1" 200 3698 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0" "-"
192.168.199.180 - - [04/May/2015:11:07:12 -0400] "GET /nginx-logo.png HTTP/1.1" 200 370 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0" "-"
192.168.199.180 - - [04/May/2015:11:07:12 -0400] "GET /poweredby.png HTTP/1.1" 200 3034 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0" "-"
192.168.199.180 - - [04/May/2015:11:07:12 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0" "-"
192.168.199.180 - - [04/May/2015:11:07:12 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0" "-"
192.168.199.180 - - [04/May/2015:11:07:17 -0400] "-" 400 0 "-" "-" "-"
192.168.199.155 - - [04/May/2015:11:07:18 -0400] "GET / HTTP/1.1" 200 3698 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:18 -0400] "GET /nginx-logo.png HTTP/1.1" 200 370 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:18 -0400] "GET /poweredby.png HTTP/1.1" 200 3034 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:20 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:20 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:30 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:30 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:30 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:35 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:35 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:35 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:37 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:37 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:37 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:38 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:39 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:40 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:41 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:42 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:43 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:43 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:43 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:48 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:49 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET /nginx-logo.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.155 - - [04/May/2015:11:07:50 -0400] "GET /poweredby.png HTTP/1.1" 304 0 "http://192.168.199.183/" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0; QQBrowser/8.0.1080.400) like Gecko" "-"
192.168.199.116 - - [04/May/2015:11:08:27 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:40 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:41 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:08:46 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:47 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:48 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:50 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:52 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:52 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:53 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:53 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:53 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.116 - - [04/May/2015:11:08:55 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:08:59 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:09:01 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:09:02 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:09:04 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:09:05 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:09:07 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:08 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.174 - - [04/May/2015:11:09:08 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:09 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:10 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:10 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:10 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:11 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:11 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:11 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:12 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:12 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.178 - - [04/May/2015:11:09:13 -0400] "GET / HTTP/1.1" 200 3698 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"
192.168.199.244 - - [04/May/2015:11:09:26 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36" "-"
192.168.199.244 - - [04/May/2015:11:09:30 -0400] "GET /bb HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:09:30 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:09:34 -0400] "GET /cc HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:09:34 -0400] "GET /favicon.ico HTTP/1.1" 404 3652 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"
192.168.199.244 - - [04/May/2015:11:09:44 -0400] "-" 400 0 "-" "-" "-"

error.log文件:

2015/05/04 11:04:49 [error] 2145#0: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:06:12 [error] 2145#0: *7 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:07:12 [error] 2145#0: *10 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.180, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:07:12 [error] 2145#0: *10 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.180, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:07:20 [error] 2145#0: *14 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.155, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:07:20 [error] 2145#0: *15 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.155, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:09:26 [error] 2145#0: *47 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:09:30 [error] 2145#0: *49 open() "/usr/share/nginx/html/bb" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /bb HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:09:30 [error] 2145#0: *49 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:09:34 [error] 2145#0: *50 open() "/usr/share/nginx/html/cc" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /cc HTTP/1.1", host: "192.168.199.183"
2015/05/04 11:09:34 [error] 2145#0: *50 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.199.244, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.199.183"

bash实例-参数/函数/统计IP的更多相关文章

  1. C利用可变参数列表统计一组数的平均值,利用函数形式参数栈原理实现指针运算

    //描述:利用可变参数列表统计一组数的平均值 #include <stdarg.h> #include <stdio.h> float average(int num, ... ...

  2. MySQL数据库实例参数对比脚本

    如何对比两个MySQL实例的参数情况,生产中常会有这样的需求,最近写了个python脚本,可基本实现该需求. 脚本 #!/usr/bin/python import MySQLdb,sys def f ...

  3. 【转】一大波实用的 bash 别名和函数

    作为一个命令行探索者,你或许发现你自己一遍又一遍重复同样的命令.如果你总是用ssh进入到同一台电脑,如果你总是将一连串命令连接起来,如果你总是用同样的参数运行一个程序,你也许希望在这种不断的重复中为你 ...

  4. 实用的bash别名和函数

    本文来自于:程序师 作为一个命令行探索者,你或许发现你自己一遍又一遍重复同样的命令.如果你总是用ssh进入到同一台电脑,如果你总是将一连串命令连接起来,如果你总是用同样的参数运行一个程序,你也许希望在 ...

  5. Bash 实例,第二部分

    我们先看一下处理命令行自变量的简单技巧,然后再看看 bash 基本编程结构. 接收自变量 在 介绍性文章 中的样本程序中,我们使用环境变量 "$1" 来引用第一个命令行自变量.类似 ...

  6. Swift开发第十篇——可变参数函数&初始化方法顺序

    本篇分为两部分: 一.Swift中的可变参数函数 二.初始化方法的顺序 一.Swift中的可变参数函数 可变参数函数指的是可以接受任意多个参数的函数,在 OC 中,拼接字符串的函数就属于可变参数函数 ...

  7. C语言可变参数函数的编写

    1. 引言 C语言我们接触的第一个库函数是 printf(“hello,world!”);其参数个数为1个. 然后,我们会接触到诸如: printf(“a=%d,b=%s,c=%c”,a,b,c);此 ...

  8. C语言可变参数函数详解示例

    先看代码 printf(“hello,world!”);其参数个数为1个. printf(“a=%d,b=%s,c=%c”,a,b,c);其参数个数为4个. 如何编写可变参数函数呢?我们首先来看看pr ...

  9. c++11变长参数函数模板

    By francis_hao    Mar 25,2018   一个最简单的实例大概是这个样子: #include <iostream>using namespace std; /*变长参 ...

随机推荐

  1. Storm编程入门API系列之Storm的Topology的stream grouping

    概念,见博客 Storm概念学习系列之stream grouping(流分组) Storm的stream grouping的Shuffle Grouping 它是随机分组,随机派发stream里面的t ...

  2. Linux下无图形界面安装Matlab

    1 下载R2015b_glnxa64.iso和破解文件Matlab+2015b+Linux64+Crack 百度网盘可以直接搜索资源.推荐一个可以多线程下载百度网盘超大文件的工具Aria2,均速1.3 ...

  3. 【Java】 hashcode()和System.identityHashCode()

    hashcode()和System.identityHashCode() openjdk8: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/5b86f ...

  4. python生成器简单代码了理解。

    __author__ = 'ZHHT' #!/usr/bin/env python # -*- coding:utf-8 -*- #返回当前执行到的函数的返回值.并保持当前执行的状态.这时候先执行别的 ...

  5. fpathconf

    http://pubs.opengroup.org/onlinepubs/009695399/functions/pathconf.html

  6. CRC检错技术原理

    一.题外话 说来惭愧,一开始是考虑写关于CRC检错技术更深层次数学原理的,然而在翻看<Basic Algebra>后,我果断放弃了这种不切实际的想法.个人觉得不是因为本人数学水平差或者能力 ...

  7. Python+Selenium之断言对应的元素是否获取以及基础知识回顾

    # coding=utf-8 from selenium import webdriver driver = webdriver.Firefox() driver.maximize_window () ...

  8. COGS 2794. 爱摔跤的比利海灵顿

    ★☆   输入文件:find_k.in   输出文件:find_k.out   简单对比时间限制:1.4 s   内存限制:128 MB [题目描述] B•海灵顿•雷想要和n个巨人比试摔♂跤,他想先和 ...

  9. java面试题(杨晓峰)---第三讲谈谈final、finally、finalize有什么不同?

    java语言有很多看起来相似,但用途却完全不相同的语言要素,这些内容往往容易成为面试官考察你知识掌握程度的切入点. 今天我要问你一个基础的java经典题目,谈谈final.finally.finali ...

  10. BestCoder Round #56 1002 Clarke and problem 1003 Clarke and puzzle (dp,二维bit或线段树)

    今天第二次做BC,不习惯hdu的oj,CE过2次... 1002 Clarke and problem 和Codeforces Round #319 (Div. 2) B Modulo Sum思路差不 ...