Rails Log Analyzers

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


New From: $8.56 USD In Stock
Used from: $19.95 USD In Stock

Share