BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanne

Apache Statistiken in der Konsole betrachten

Mit Hilfe von goaccess kann eine Apache-Logdatei eingelesen und die entsprechenden Statistiken angezeigt werden. Im FreeBSD-Portbaum findet man goaccess unter sysutils/goaccess:

# cd /usr/ports/sysutils/goaccess && make install clean

Mit der -f Option wird der Pfad zur Apache-Logdatei angegeben, danach werden die Statistiken erstellt und angezeigt:

# goaccess -f /var/log/httpd-access.log
General Statistics - Information analyzed from log file - Unique totals                                                                                                                                                                                   [Active Module 1]

  Total Requests  1527869   Total Unique Visitors 1764    Total Referrers  163    Log  280.69 MB
  Failed Requests 0         Total Unique Files    40269   Total Unique 404 41107  BW   N/A
  Generation Time 22 sec    Total Static Files    1732    /var/log/httpd-access.log

 1 - Unique visitors per day - Including spiders
 HTTP requests having the same IP, same date and same agent will be considered a unique visit

  2       0.11%   20/Nov/2010      ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  5       0.28%   19/Nov/2010      ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  7       0.40%   18/Nov/2010      ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  4       0.23%   17/Nov/2010      |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  6       0.34%   16/Nov/2010      |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  3       0.17%   15/Nov/2010      |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

 2 - Requested files (Pages-URL)
 Top 6 different files requested sorted by requests - percent - [bandwidth]

  401306  26.27%  /server-status?auto
  201017  13.16%  /tinderbox/index.php
  190187  12.45%  /tb/index.php?action=latest_buildports
  110549  7.24%   /tb/index.php?action=latest_buildports_rss
  2467    0.16%   /tb/index.php
  880     0.06%   /tb/index.php?action=list_tinderd_queue

 3 - Requested static files - (Static content: png,js,etc)
 Top 6 different static files requested, sorted by requests - percent - [bandwidth]

  189031  12.37%  /tb/templates/paefchen/tinderstyle.css
  188987  12.37%  /tb/templates/paefchen/images/hdr_fill.png
  188958  12.37%  /tb/templates/paefchen/tinderstyle.js
  459     0.03%   /favicon.ico
  404     0.03%   //templates/paefchen/tinderstyle.js
  402     0.03%   //templates/paefchen/images/hdr_fill.png

 4 - Referrers URLs
 Top 6 different referrers sorted by requests

  726258  47.53%  -
  368101  24.09%  https://tinderbox.chruetertee.ch/tb/index.php?action=latest_buildports
  183953  12.04%  https://tinderbox.chruetertee.ch/tb/templates/paefchen/tinderstyle.css
  147500  9.65%   https://tinderbox.chruetertee.ch/tb/index.php
  40454   2.65%   http://tinderbox.chruetertee.ch/
  38295   2.51%   https://tinderbox.chruetertee.ch/tb/

 5 - HTTP 404 Not Found response code
 Top 6 different 404 sorted by requests

  78      0.01%   /tb/templates/default/index.php
  54      0.00%   /phpMyAdmin/scripts/setup.php
  53      0.00%   /phpmyadmin/scripts/setup.php
  47      0.00%   /mysqladmin/scripts/setup.php
  46      0.00%   /php-my-admin/scripts/setup.php
  45      0.00%   /phpMyAdmin-2.6.3/scripts/setup.php

 6 - Operating Systems
 Top 6 different Operating Systems sorted by unique requests

  1161    65.82%  Unknown          ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  387     21.94%  BSD              |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  167     9.47%   Windows          |||||||||||||||||||||||||||||||||
  25      1.42%   Macintosh        |||||
  24      1.36%   Linux            ||||


 7 - Browsers
 Top 6 different browsers sorted by unique requests

  1063    60.26%  Unknown          ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  464     26.30%  Firefox          |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  116     6.58%   MSIE             |||||||||||||||||||||||||
  78      4.42%   Others           |||||||||||||||||
  17      0.96%   Safari           |||
  16      0.91%   Crawlers         |||

 8 - Hosts
 Top 6 different hosts sorted by requests

  390975  25.59%  tinderbox.chruete||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  338434  22.15%  212.47.xxx.xxx   |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  201015  13.16%  212.47.xxx.xxx   |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  110549  7.24%   93.186.xxx.xxx   |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  40700   2.66%   85.2.xxx.xxx     ||||||||||||||||||||||||
  28036   1.83%   62.203.xxx.xxx   ||||||||||||||||

 10 - Top Referring Sites
 Top 6 different referring sites sorted by requests

  61064   4.00%   tinderbox.chruetertee.ch
  26      0.00%   xyz
  16      0.00%   www.netcraft.com
  6       0.00%   xyz
  4       0.00%   random.yahoo.com
  4       0.00%   xyz

 11 - Top Keyphrases used on Google's search engine
 Top 6 different keyphrases sorted by requests

  3       0.00%   free proxy checker

Mehr Informationen zu goaccess findet man in der Manpage goaccess(1).

Comments (1)  Permalink