This gem provides an easy to use parser to various HTTP log formats.
Just run:
gem install http-log-parser
That should take care of it.
require 'http_log_parser' parser = HttpLogParser.new File.open('/path/to.log', 'r') do |file| while(line = file.gets) parsed_data = parser.parse_line(line) p parsed_data end end
This code is made availablie under the MIT license. It is based on based on code from Jan Wikholm.
Generated with the Darkfish Rdoc Generator 2.