Calculate website performance statistics based on apache logfiles
You love this project? Send a donation to the following bitcoin wallet: 1EGoDhAmaZbLazNmdZ9vDu2zYgFCKsNur5
Software prerequisites:
- python
- cronolog (on webserver)
Define the following logformattter and use it in the virtual host
# Central configuration or pr VHOST
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined_performance
# Simple
CustomLog "logs/access_log" combined_performance
# Better
CustomLog "|/usr/bin/cronolog -l /var/log/apache2/vhosts/my.domain.org/current-ssl_access_log /var/log/apache2/vhosts/my.domain.org/ssl_access_log.%Y-%m-%d" combined_performance
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
...
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve" directory="logs"
prefix="access." suffix=".log" pattern="%h %l %u %t "%r" %s %b %I %S %D"/>
...
Invoke "response_times_calculator.py" on compressed and uncompressed apache logfiles
./response_times_calculator.py -c default.cfg -r access_log.gz access_log
Additional authors are very welcome - just submit your patches as pull requests.
- Marc Schoechlin ms@256bit.org
- Marc Schoechlin marc.schoechlin@dmc.de