Narnach / request-log-analyzer forked from wvanbergen/request-log-analyzer

A command line tool that analyzes request logfiles (e.g. Rails, Merb) to produce a performance report.

This URL has Read+Write access

name age message
file .gitignore Sat Feb 07 21:00:42 -0800 2009 Added rdoc directories to .gitignore [wvanbergen]
file DESIGN Tue Jan 27 13:27:54 -0800 2009 Expanded design story [barttenbrinke]
file HACKING Thu Jan 15 11:03:09 -0800 2009 Changed contact reference [wvanbergen]
file LICENSE Thu Aug 14 11:16:37 -0700 2008 Added MIT License [barttenbrinke]
file README.rdoc Thu Jan 29 13:45:48 -0800 2009 README - Merb added [wvanbergen]
file Rakefile Fri Jan 16 21:49:36 -0800 2009 Enabled RDOC for project [wvanbergen]
directory bin/ Sat Jan 31 03:46:36 -0800 2009 Improved documentation of RequestLogAnalyzer mo... [wvanbergen]
directory lib/ Loading commit data...
file request-log-analyzer.gemspec Sat Feb 28 02:28:44 -0800 2009 Updated request-log-analyzer.gemspec for releas... [wvanbergen]
directory spec/ Sat Feb 07 21:06:13 -0800 2009 Handle :provides captures better [wvanbergen]
directory tasks/ Sun Jan 18 07:49:23 -0800 2009 Small cosmetic changes to release task [wvanbergen]
README.rdoc

Request-log-analyzer

This is a simple command line tool to analyze request log files of both Rails and Merb to produce a performance report. Its purpose is to find what actions are best candidates for optimization.

  • Analyzes Rails log files (all versions), Merb logs, or any other log format
  • Can combine multiple files (handy if you are using logrotate)
  • Uses several metrics, including cumulative request time, average request time, process blockers, database and rendering time, HTTP methods and statuses, Rails action cache statistics, etc.) (Sample output: wiki.github.com/wvanbergen/request-log-analyzer/sample-output)
  • Low memory footprint (server-safe)
  • Fast
  • MIT licensed

Request log analyzer was designed and built by Willem van Bergen and Bart ten Brinke.

Installation

Install request-log-analyzer as a Ruby gem:

  $ sudo gem install request-log-analyzer

Alternatively, use the gem from the GitHub gem server:

  $ sudo gem install wvanbergen-request-log-analyzer --source http://gems.github.com

To get the best results out of request-log-analyzer, make sure to set up logging correctly: wiki.github.com/wvanbergen/request-log-analyzer/configure-logging for your application.

Usage

To analyze a log file and produce a performance report, run request-log-analyzer like this:

  $ request-log-analyzer log/production.log

For more details and available command line options, see the project’s wiki: wiki.github.com/wvanbergen/request-log-analyzer/basic-usage

Additional information