正德厚生,臻于至善

httpd server access ip地址统计

##########################################
vi $INST_TOP/ora/10.1.3/Apache/Apache/conf/httpd.conf
LogFormat "%h %l %u %t \"%r\" %>s %b %T \"%{Referer}i\" \"%{User-Agent}i\" %{X-Forwarded-For}i" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

cd $LOG_HOME/ora/10.1.3/Apache
rm -rf $LOG_HOME/ora/10.1.3/Apache/*
adapcctl.sh stop
adapcctl.sh start
##########################################
cd $LOG_HOME/ora/10.1.3/Apache
grep -rin "/OA_HTML/Bne" access*

cd $LOG_HOME/ora/10.1.3/Apache
grep -rin "client denied by server configuration: /OA_HTML/Bne" *

cd $LOG_HOME/ora/10.1.3/Apache
grep -rin "/OA_HTML/Bne" access*|awk '{print $1,$NF}'|uniq -c|head -10

cd $LOG_HOME/ora/10.1.3/Apache
grep -rin "/OA_HTML/Bne" access*|awk '{print $1,$NF}'|uniq -c |sort -rn |head -10
##########################################
赞(0) 打赏
未经允许不得转载:徐万新之路 » httpd server access ip地址统计

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册