1. Referência
2. Configuring Apache 1
$ vim /etc/httpd/conf/httpd.conf
:
LoadModule access_module modules/mod_access.so
:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
%T:
3. Wait for incident
wait for incident monitoring server status
http://apache-server/status-server
4. Analyse last entries in access.log
$ cd /var/log/httpd
$ tail -15000 www.inmetrics.log | grep 'confluence' | awk '$NF > 60 { print $0 }' | less
$ tail -10000 www.inmetrics.log | grep 'confluence' | grep '05/Apr/2012:09:2' | awk '{ print $4, $7, $NF}' | sort
$ tail -10000 www.inmetrics.log | grep 'confluence' | grep '05/Apr/2012:09:2' | awk '{ print $4, $7, $NF}' | sort
Nenhum comentário:
Postar um comentário