An open API service indexing awesome lists of open source software.

https://github.com/tcurdt/http-log-parser

http log file parser
https://github.com/tcurdt/http-log-parser

Last synced: 2 months ago
JSON representation

http log file parser

Awesome Lists containing this project

README

        

= LogParser

{Build Status}[https://travis-ci.org/tcurdt/http-log-parser]

== 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.