apache ログ解析ツール SWStats6.0入れてみる
かなり古くからあるツールですね。
http://www.bflets.dyndns.org/Tools/AWStats60Docs_JP/awstats_setup_jp.html
を参考に入れてみます。
apt-get install awstats
find / -name 'awstats' /usr/share/doc-base/awstats /usr/share/awstats /usr/share/doc/awstats /etc/awstats /etc/cron.d/awstats /var/lib/awstats
いきなり実行したら、domainを指定してなくて怒られました。
perl awstats.pl -config=awstats.conf -update Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats. Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
指定して再び実行すると
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 6.9 (build 1.925) From data in log file "/var/log/apache2/access.log"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... Phase 2 : Now process new records (Flush history on disk after 20000 hosts)... Reverse DNS lookup for ::1 not available without ipv6 plugin enabled. Jumped lines in file: 0 Parsed lines in file: 2504 Found 1 dropped records, Found 0 corrupted records, Found 0 old records, Found 2503 new qualified records.
perl awstats.pl -config=awstats.conf -output -staticlinks > /var/www/hoge/huga/awstats.html
とやるとawstats.htmlというファイルが生成されました。
・Unique visitors
・Number of visits
・Pages Hits
・Bandwidth
の他にも
キーワードやHTTP Status codesなどがわかるので簡易的なシステム監視情報はokな気がします。
ここからマーケティング解析となると厳しそうではありますが。