码迷,mamicode.com
首页 > Web开发 > 详细

查看web访问日志各url shell

时间:2015-03-10 16:59:17      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

root@debian:~/Workspace# awk ‘ { if(match($7,"/*\.php*")) { if(index($7,"?")) { print substr($7,0,index($7,"?")) } else { print $7; } } } ‘ access.log | sort -d | uniq -c
      8 /allinone_beta_02/dma_14/index.php
    641 /allinone_beta_02/dma_15/index.php
    357 /allinone_beta_02/dma_16/index.php
    358 /allinone_beta_02/dma_17/index.php
      1 /allinone_beta_02/dma/index.php
   2539 /allinone_beta_02/index.php
    229 /allinone_beta_02/wechat/index.php
    219 /corporate_beta_10/index.php
      2 /corporate_beta10/index.php
      4 /corporate/index.php
      2 /ecshop/activity.php
     53 /ecshop/api/cron.php
      2 /ecshop/article.php
     22 /ecshop/captcha.php
     10 /ecshop/category.php
      8 /ecshop/flow.php
      1 /ecshop/gallery.php
     37 /ecshop/goods.php
      2 /ecshop/group_buy.php
      6 /ecshop/user.php
   4033 /wechat_beta_22/index.php
      4 /wechat_beta_27/index.php
     47 /wechat_beta_28/index.php

  可能不准确,不过大致不会错

查看web访问日志各url shell

标签:

原文地址:http://www.cnblogs.com/luowen/p/4326173.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!