0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
HTTP log file parser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

LogParser¶ ↑

<img src=“https://travis-ci.org/tcurdt/http-log-parser.svg” alt=“Build Status” />

Introduction¶ ↑

This gem provides an easy to use parser to various HTTP log formats.

Installation¶ ↑

Just run:

gem install http-log-parser

That should take care of it.

Usage¶ ↑

require 'http_log_parser'

parser = HttpLogParser.new

File.open('/path/to.log', 'r:ascii-8bit') do |file|
  while(line = file.gets)
    parsed_data = parser.parse_line(line)
    p parsed_data
  end
end

Testing¶ ↑

bundle install --path vendor/bundle
rake test

License¶ ↑

This code is made availablie under the MIT license. It is based on based on code from Jan Wikholm.