Skip to content

CatrielD/http-log-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:ascii-8bit') do |file|
  while(line = file.gets)
    parsed_data = parser.parse_line(line)
    p parsed_data
  end
end
bundle install --path vendor/bundle
rake test

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

About

http log file parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%