LoginSignup
6
6

More than 5 years have passed since last update.

簡単にログ解析をする

Posted at

Request-log-analyzer

コマンドラインからログを渡すとテキストや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
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6