0.0
No commit activity in last 3 years
No release in over 3 years
A simple NCSA-style log file parser.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.9
>= 0
>= 0
 Project Readme

NCSA Parser¶ ↑

Here’s a quick little library for reading NCSA-style web server logs. Quick usage:

NCSAParser.each_line(File.open('/var/log/httpd/access_log'), :pattern => %w{
  host ident username datetime request
  status bytes referer ua
  outstream instream ratio
}) do |b|
  puts b.inspect
end

parser = NCSAParser::Parser.new
parsed = parser.parse_line('...')

There are more examples available in the tests.

License¶ ↑

This gem is licensed under an MIT-style license. See the MIT-LICENSE file for details.