コマンドラインからログを渡すとテキストやHTML形式などで出力してくれる
(現在開発とまってる)
インストール
$ gem install request-log-analyzer
バージョンは 1.13.4 (3/29現在)
実行方法
サポートするログフォーマット
- amazon_s3
- apache (Combine)
- delayed_job
- haproxy
- merb
- mysql (Slow logのみ)
- postgresql
- rack
- rails (rails2形式)
- rails3 (rails4もOK)
- w3c
カスタマイズも可能
Apache
$ request-log-analyzer access_log
出力される項目
- Request distribution per hour
- HTTP methods
- HTTP statuses
- Most popular URIs
- User agents
- Referers
- Traffic - by sum
- Traffic - by mean
MySQL (SlowLog)
$ request-log-analyzer -f mysql mysql-slow.log
出力される項目
- Query time per user - by sum
- Query time per user - by mean
- Query time - by sum
- Query time - by mean
- Lock time - by sum
- Rows examined - by sum
- Rows examined - by mean
- Rows sent - by sum
- Rows sent - by mean