apachelogregex
apachelogregex copied to clipboard
Ruby parser for Apache log files based on regular expressions.
Hey Simone, Sorry about the last commits. Take a look at these if you have time. Also, note: "rake manifest" deletes your test fixtures... I hope that's desired? I ran...
Add the most common Apache log formats available as class constants. For instance, the user might want to do ``` parser = ApacheLogRegex.new(ApacheLogRegex::COMBINED_LOG_FORMAT) ``` or ``` parser = ApacheLogRegex.new(:combined) ```...
using this code: # !/usr/bin/env ruby require "rubygems" require "apachelogregex" format = '%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"' parser = ApacheLogRegex.new(format) referers = File.readlines('access.log').collect do |line| values...
Posted on behalf of toro. when log format is NCSA extended/combined, `%u` ( the userid of the person requesting the document) always causes the `parse error`. I think that the...