Parse::AccessLogEntry::Accessor - adds accessors to Parse::AccessLogEntry module.
use Parse::AccessLogEntry::Accessor; my $parser = Parse::AccessLogEntry::Accessor->new(); # $line is a string containing one line of an access log $parser->parse($line); print $parser->host(), "\n";
This module is an Apache accesslog parser. It's based on Parse::AccessLogEntry module.
The key name of the hushref and the accessor of this name are offered.
Create an instance of Parse::AccessLogEntry::Accessor
Parse one line of an Apache accesslog
Get client ip of the request
Get user logged in ("-" for none)
Get date of the request
Get server time of the request
Get server offset from GMT
Get type of request (GET, POST, etc)
Get file requested
Get protocol used (HTTP/1.1, etc)
Get code returned by apache (200, 304, etc)
Get number of bytes returned to the client
Copyright 2008 Ryoji Tanida, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.