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
- Host: GitHub
- URL: https://github.com/tcurdt/http-log-parser
- Owner: tcurdt
- Created: 2010-04-22T10:18:00.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T01:26:24.000Z (over 1 year ago)
- Last Synced: 2024-11-06T01:02:36.991Z (8 months ago)
- Language: Ruby
- Homepage: http://github.com/tcurdt/http-log-parser
- Size: 10.7 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= LogParser
{
}[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.newFile.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.