Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

glTail: Sexy Log File Visualization using Ruby

By Peter Cooper / October 12, 2007

Gltail

glTail is a great little Ruby script by Erlend Simonsen (aka Fudgie) that uses OpenGL and Ruby to visualize the events taking place in log files in real time. An example video on the official site shows requests coming into an HTTP server, each represented by a "ball" which is thrown across the screen. The script uses net-ssh to connect to a server and then libopengl-ruby to output the graphics. Parsers are included for processing Apache, Rails, IIS and Postfix log files. Nice work! The code is merely a couple hundred lines of Ruby, so if you've fancied putting together a basic OpenGL app, it's worth looking at it for that reason too.

Comments

  1. Erlend Simonsen says:

    Please grab version 0.05 instead, as it helps you get the correct versions of the required dependencies installed.

    0.06 will be released soon as well, which has split the source into multiple files to make it easier to keep your local changes and tweaks around when upgrading.

  2. Eckhard Rotte says:

    Highly recommended and really as simple to setup as described on the project page. Install 2 gems, edit some parameters (login, location of logfile) ans the show starts!

  3. Mike C says:

    Just tried it out. Very cool. It even automagically notices signups and logins!

Other Posts to Enjoy

Twitter Mentions