Parse::AccessLogEntry::Accessor - adds accessors to Parse::AccessLogEntry module.
Version 0.01
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
Get referrer
Get user-agent
Parse::AccessLogEntry
Ryoji Tanida, <amarisan@cpan.org>
<amarisan@cpan.org>
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.
To install Parse::AccessLogEntry::Accessor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::AccessLogEntry::Accessor
CPAN shell
perl -MCPAN -e shell install Parse::AccessLogEntry::Accessor
For more information on module installation, please visit the detailed CPAN module installation guide.