`
唐美好
  • 浏览: 44910 次
  • 性别: Icon_minigender_1
  • 来自: 湖南永州
社区版块
存档分类
最新评论

Linux Shell统计Apache访问日志的IP

阅读更多
192.168.10.2 - - [14/Mar/2014:05:14:47 +0800] "GET / HTTP/1.1" 403 3985 "-" "ELinks/0.12pre5 (textmode; Linux; -)"
192.168.10.1 - - [14/Mar/2014:05:15:03 +0800] "GET / HTTP/1.1" 403 3985 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:04 +0800] "GET /icons/apache_pb2.gif HTTP/1.1" 200 1797 "http://192.168.10.2/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:04 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:05 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:05 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET / HTTP/1.1" 403 3985 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET /icons/apache_pb2.gif HTTP/1.1" 200 1797 "http://192.168.10.2/" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:00:33 +0800] "GET / HTTP/1.1" 200 9 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:00:47 +0800] "GET /default HTTP/1.1" 404 284 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:00:52 +0800] "GET /default.php HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:07:38 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:55 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:55 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:12:44 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:12:44 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:12:47 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:18:04 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:19:39 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:22:00 +0800] "GET /index.php HTTP/1.1" 200 9 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:29:45 +0800] "GET /mod1.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:31:13 +0800] "GET /index.php HTTP/1.1" 200 9 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:31:26 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:55:06 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:02:19:00 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:26:55 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:26:58 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:29:34 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:29:39 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%BA%C5%92 HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:33:17 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:33:22 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%BA%C5%92 HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:36:25 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:36:27 +0800] "GET /del.php?id=%E5%BC%A0%E4%BA%8C HTTP/1.1" 200 13 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:00 +0800] "GET /del.php?id=%E5%BC%A0%E4%BA%8C HTTP/1.1" 200 16 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:46 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:47 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:47 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:47 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:50 +0800] "GET /del.php?id=2 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:55 +0800] "GET /default.php HTTP/1.1" 200 419 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:58 +0800] "GET /del.php?id=1 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:58 +0800] "GET /del.php?id=1 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:00 +0800] "GET /default.php HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:01 +0800] "GET /default.php HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:57 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:58 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:26 +0800] "GET /default.php HTTP/1.1" 200 799 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:26 +0800] "GET /default.php HTTP/1.1" 200 799 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:26 +0800] "GET /default.php HTTP/1.1" 200 799 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:30 +0800] "GET /add.php? HTTP/1.1" 404 284 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:54 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:55 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:56 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:57 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:43:01 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:43:02 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:32 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:33 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:33 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:57 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:58 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:58 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:45:07 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:46:37 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:46:37 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
1
192.168.10.2 - - [18/Mar/2014:03:53:39 +0800] "GET /add.php? HTTP/1.1" 200 7 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:54:26 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%B8%89 HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:55:33 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:58:24 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:58:29 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:59:13 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:59:17 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:59:22 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:00:20 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:00:28 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:02:37 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:02:48 +0800] "POST /add1.php HTTP/1.1" 200 16 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:03:03 +0800] "POST /add1.php HTTP/1.1" 200 16 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:07:04 +0800] "POST /add1.php HTTP/1.1" 200 28 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:08:44 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:33 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:35 +0800] "GET /default.php HTTP/1.1" 200 727 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:36 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:49 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:53 +0800] "GET /default.php HTTP/1.1" 200 727 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:56 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%BA%8C HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:14:29 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:15:25 +0800] "POST /add1.php HTTP/1.1" 200 25 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:16:59 +0800] "POST /add1.php HTTP/1.1" 200 25 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:17:14 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:17:15 +0800] "POST /add1.php HTTP/1.1" 200 25 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:18:53 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:18:56 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:19:00 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:19:02 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:19:51 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:20:12 +0800] "POST /add1.php HTTP/1.1" 200 32 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:25:44 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:25:58 +0800] "POST /add1.php HTTP/1.1" 200 20 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:30:18 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%B8%80 HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:51:26 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%B8%89 HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:51:44 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/mod1.php?id=%E5%BC%A0%E4%B8%89" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:51:52 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/mod1.php?id=%E5%BC%A0%E4%B8%89" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:52:57 +0800] "GET /mod2.php HTTP/1.1" 200 14 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:53:00 +0800] "POST /mod2.php HTTP/1.1" 200 31 "http://192.168.10.2/mod1.php?id=%E5%BC%A0%E4%B8%89" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:53:09 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:53:29 +0800] "POST /add1.php HTTP/1.1" 200 16 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.1 - - [18/Mar/2014:04:55:40 +0800] "GET / HTTP/1.1" 200 9 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:55:41 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:55:41 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:55:41 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:57:24 +0800] "GET /default.php HTTP/1.1" 200 1034 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:57:33 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:57:48 +0800] "GET /del.php?id=1 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"

对其访问的IP进行统计
cat  /var/log/httpd/access_log-20140323  | awk '{print $1}' | uniq -c | sed 's#^\s*##'| sort -n   -k 1 -t:

分享到:
评论

相关推荐

    nginx-log-analysis:用于分析 nginx 日志文件的很棒的 linux shell 命令的精选列表

    本篇文章将详细介绍如何利用Linux shell命令来分析Nginx的日志文件。 首先,了解Nginx的日志格式至关重要。默认情况下,Nginx的主要访问日志文件通常位于`/var/log/nginx/access.log`,采用combined日志格式,内容...

    linux下统计appche站点IP访问量的shell脚本

    ### Linux下统计Apache站点IP访问量的Shell脚本详解 #### 概述 在Linux环境中,经常需要对Apache服务器的日志文件进行分析,以便更好地理解网站的访问模式、用户行为等信息。通过编写Shell脚本来统计Apache站点的...

    Linux如何查看当前有多少IP连接了这台机子.如何查看都谁连接了我

    许多服务器应用程序(如Apache、Nginx等)会记录访问日志,通过分析这些日志,可以获取详细的连接信息。 8. **防火墙规则:** 了解连接信息也有助于调整防火墙规则,例如使用`iptables`或`ufw`控制哪些IP允许或...

    Shell+Linux命令实现日志分析

    本文将详细介绍如何利用Shell和Linux命令来实现日志分析,特别是针对访问日志的统计。 1. 列出当天访问次数最多的IP: 使用`cut`命令以特定字符(通常是空格或逗号)分隔日志条目,提取IP地址(通常是第一字段),...

    linux 服务器部署 apache-tomcat-8.0.36.tar.gz

    本教程将详细讲解如何在Linux服务器上部署`apache-tomcat-8.0.36.tar.gz`。 首先,确保你的Linux服务器已经安装了Java Development Kit (JDK)。Tomcat运行需要Java环境,所以请执行以下命令检查JDK是否已安装: ``...

    linux下集成Apache与weblogic.pdf

    在Linux环境下,集成Apache HTTP服务器和Oracle WebLogic Server是一项常见的任务,这主要为了实现负载均衡、安全性增强以及更高效的资源管理。以下将详细介绍如何在Apache和WebLogic之间进行集成。 首先,我们需要...

    linux中svn邮件&日志不为空&限制ip&备份

    通过以上步骤,你可以在Linux环境中实现一个完善的SVN环境,包括自动邮件通知、提交日志检查、IP访问控制和定期备份,这将大大提高团队协作的效率和代码管理的安全性。记得在实施这些配置时,要根据你的实际环境和...

    一个shell面试题

    在分析Apache日志的例子中,我们看到了`cut`、`sort`、`uniq`和`awk`的综合运用。`cut`用于从日志文件中提取IP地址,`sort`和`uniq`用于统计每个IP的出现频率,而`awk`则构建了一个关联数组来追踪每个IP的访问次数。...

    大数据综合案例-网站日志分析

    该项目的目的是通过对技术学习论坛的 Apache Common 日志进行分析,计算该论坛的一些关键指标,供运营者进行决策时参考。该项目的数据来源于国内某技术学习论坛,该论坛由某培训机构主办,汇聚了众多技术学习者,...

    100个shell脚本合集

    在shell脚本中,可以通过监控Nginx日志来识别异常IP,例如当某个IP在短时间内访问次数超过设定阈值(如10次),则将其加入iptables防火墙的黑名单,阻止其继续访问。同时,脚本会记录被屏蔽的IP到 `/tmp/drop_ip.log...

    Linux命令考试题(范围).doc.doc

    * 统计 apache 访问日志的唯一 IP 数量:uniq -c /var/log/apache/access.log * 统计 apache 访问日志,输出 10 个重复数量最高的 IP:sort -n -r -k 1 | head -10 /var/log/apache/access.log * 统计 apache 访问...

    shell脚本多进程ping多个ip

    在这个场景下,我们关注的是一个shell脚本,它能够实现多进程同时ping多个IP地址,并且能够控制ping结果的日志路径和日志文件大小。这在监控网络连通性、故障排查或者性能测试时非常有用。 首先,让我们深入理解...

    linux 应用设置安装方法集

    这时,日志文件(如Apache的日志在`/var/log/apache2/`,MySQL的日志可能在`/var/log/mysqld.log`)会提供重要线索。同时,熟练使用`grep`、`tail`和`less`等命令有助于快速定位问题。 8. **自动化部署**: 对于...

    韩老师Linux2021系列教程

    你还将学习Linux的日志系统,了解如何分析和解读日志文件,这对于排查问题和维护系统安全至关重要。 shell脚本编写是提高效率的有效手段。教程会教授bash shell的基础语法,包括变量、条件语句、循环结构和函数,让...

    SSH Secure Shell Client

    SSH Secure Shell Client是一款广泛使用的软件,它为用户提供了一个安全的远程访问环境,使得用户能够连接到Linux服务器进行各种管理操作。SSH(Secure Shell)是一种网络协议,用于在不安全的网络上安全地传输数据...

    shell100例.pdf

    4. **Apache访问日志分析**:通过读取Apache的日志文件,使用`awk`或者`grep`命令筛选出13:30到14:30间的访问记录,然后提取远程IP地址,进行统计。 5. **打印国际象棋棋盘**:利用`for`循环和嵌套结构,输出交替的...

    Linux讲义 Linux讲义 Linux讲义

    4. **Shell与命令行**:介绍Bash Shell,学习如何在命令行中进行交互,包括命令行参数、通配符、管道、重定向和脚本编写。 5. **进程管理**:讲解如何使用`ps`、`top`、`kill`等命令查看和控制进程,以及理解进程的...

    Linux服务管理与自动化运维 PPT课件

    2. **Shell脚本编程**:Shell是Linux的命令解释器,也是编写自动化脚本的重要工具。通过学习Bash或其他Shell语言,可以编写自动化任务,如文件备份、系统监控等。 3. **Zabbix**:Zabbix是一款开源的企业级监控解决...

Global site tag (gtag.js) - Google Analytics