So far, it\’s RoR

Ruby on Rails, PostgreSQL, SVN, etc….

Rails log analyzers

Posted by Chirag Patel on October 15, 2008

Here are the ones I tried. Hope the comments aren’t too confusing

  1. Simple Rails Log Query Analyzer
    • Ran ruby bin/query_log_analyzer.rb ../log/production.log
      • production.log.1 (small log file ~25MB) Just printed the “Totals” heading with no results
      • production.log (large log file ~400MB) Ran for a long time and nothing happened
  2. The Action Profiler lets you profile actions to determine points of optimization.
    • See attachment for the error when running action_profiler ChartController#index
    • Madhu thinks it requires Production Log Analyzer (which requires SyslogLogger)
  3. rawk.rb
    (recommended by Railscast.com)

    • production.log.1 (small log file ~25MB) shows 21,300 requests

    • production.log (large log file ~400MB) —shows only 27,200 requests
    • Both took about a miute to scan and since only 7,000 difference in requests, we think Rawk is not working
    • 07/23/08: Tried ruby rawk.rb ../log/production.log on sdev but hung for long time and never returned
  4. Hodel3000CompliantLogger
    • Looks like it’s working but requires mongrel_rails start instead of ruby script/server. Cannot use it easily with Litespeed probably.
    • Uses Production Log Analyzer but circumvents SyslogLogger (unlke Action Profiler above)
  5. Railscast.com’s Request Profiling
About these ads

2 Responses to “Rails log analyzers”

  1. I am the author of request-log-analyzer, another tool to analyze your Rails production logs. It also works for Merb log files, Rails development log files and can be easily extended to other log file formats. This command line tool is open-source may be a good addition for your list. More info: http://wiki.github.com/wvanbergen/request-log-analyzer

  2. Reshank said

    Have you looked at request-log-analyzer? http://github.com/wvanbergen/request-log-analyzer/tree/master

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: