Techblog

Tech Blog

Our latest geek adventures!

29 August Rails log analyzer matures

Since I announced rails-log-analyzer some weeks ago, quite a lot has happened! Apparently there is some interest in such a tool: on this blog we get a lot of traffic looking for more info, the github project already has 22 watchers and it even has been forked!

In the mean time, Bart and I worked hard to add new functionality and refactored the internal design. As a result, I have released request-log-analyzer 0.1.0 today!

Changes: 

  • The project is renamed to request-log-analyzer, because we plan to support log files from other frameworks as well; Merb is planned to be supported in the near future.
  • The tool is distributed as a gem, making it much easier to install and update.
  • More reports, colorized output, parsing progress bars, command line arguments, etc…
  • Added a tool to create a SQLite database with all the parsed info from the log file, so you can do your own analysis.

Installation:

gem sources -a http://gems.github.com
sudo gem install wvanbergen-request-log-analyzer

Usage:

request-log-analyzer  [LOG FILES*]
request-log-analyzer -c 20 -z log/production.log

Please let me know what you think! If you have any problems using the tool, do not hesitate to contact me!

Tags: , , ,

5 Responses to “Rails log analyzer matures”

  1. Rails log analyzer matures : businessuu Says:

    [...] Original post by Willem van Bergen [...]

  2. mySelf Says:

    Hey,

    can you describe how to run your gem with windows?
    A simple request-log-analyzer [LOG FILES*] on the windows command prompt will not work.

    Thanks in advance!

  3. Willem van Bergen Says:

    Sorry for the late reply; I was on a holiday.

    Unfortunately, I don’t have a Windows installation to test it on: you may be the first person to use this tool on Windows :-). What error message do you get when you run request-log-analyzer?

    You may need to call the Ruby interpreter directly, because Windows does not support the executable file permission, but you’ll need to find out where the request-log-analyzer file is installed on your system:
    ruby c:\path\to\request-log-analyzer c:\railsapp\log\development.log

    Hope this helps!

  4. vivek Says:

    I’m trying to intall this with windows.Not sure if i’m trying to install it right - gem sources -a http://gems.github.com
    sudo gem install wvanbergen-request-log-analyzer

    please advice..

    thanks

  5. Willem van Bergen Says:

    The commands you posted works for me. However, I only have used the tool on OSX and Linux and I have never used in in Windows, so it might not even work for you at all.

    Can you post the error message you are experiencing? Any additional information you can provide might help me solving this issue.

Leave a Reply