Apache Log Regex is designed to be a simple class to parse Apache log files. It provides functionalities to parse a line from an Apache log file into a hash.
It takes an Apache logging format and generates a regular expression which is used to parse a line from a log file and returns a Hash with keys corresponding to the fields defined in the log format. The log format should match the one defined in your Apache configuration file with the LogFormat directive.