官網http://goaccess.io/
Ubunut 安裝
apt-get -y install goaccess
Centos 安裝
yum install goaccess
或是從官網下載回來編譯
$ wget http://tar.goaccess.io/goaccess-0.9.tar.gz $ tar -xzvf goaccess-0.9.tar.gz $ cd goaccess-0.9/ $ ./configure --enable-geoip --enable-utf8 $ make # make install
使用方式
goaccess -f /var/log/httpd/access_log
goaccess -f /var/log/nginx/access.log
- Unique visitors per day - Including spiders(分析每天多少不同的IP造訪)
- Requested files (Pages-URL)(瀏覽的網頁)
- Requested static files - (Static content: png,js,etc)(瀏覽的檔案)
- Referrers URLs
- HTTP 404 Not Found response code
- Operating Systems
- Browsers
- Hosts
- HTTP Status Codes(需要使用-s的參數)
- Top Referring Sites
- Top Keyphrases used on Google's search engine
參考資料
http://portable.easylife.tw/2369
http://goaccess.io/download
Hits: 99