Apache-ParseLog

 view release on metacpan or  search on metacpan

HTTPStatusCodes.txt  view on Meta::CPAN

300    	Multiple Choices
301    	Moved Permanently
302    	Moved Temporarily
303    	See Other
304    	Not Modified
305    	Use Proxy
400    	Bad Request
401    	Unauthorized
402    	Payment Required
403    	Forbidden
404    	Not Found
405    	Method Not Allowed
406    	Not Acceptable
407    	Proxy Authentication Required
408    	Request Time-out
409    	Conflict
410    	Gone
411    	Length Required
412    	Precondition Failed
413    	Request Entity Too Large
414    	Request-URI Too Large

ISO3166CountryCodes.txt  view on Meta::CPAN

INDONESIA                                       ID      IDN     360
IRAN (ISLAMIC REPUBLIC OF)                      IR      IRN     364
IRAQ                                            IQ      IRQ     368
IRELAND                                         IE      IRL     372
ISRAEL                                          IL      ISR     376
ITALY                                           IT      ITA     380
JAMAICA                                         JM      JAM     388
JAPAN                                           JP      JPN     392
JORDAN                                          JO      JOR     400
KAZAKHSTAN                                      KZ      KAZ     398  
KENYA                                           KE      KEN     404
KIRIBATI                                        KI      KIR     296
KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF          KP      PRK     408
KOREA, REPUBLIC OF                              KR      KOR     410
KUWAIT                                          KW      KWT     414
KYRGYZSTAN                                      KG      KGZ     417  
LAO PEOPLE'S DEMOCRATIC REPUBLIC                LA      LAO     418
LATVIA                                          LV      LVA     428  
LEBANON                                         LB      LBN     422
LESOTHO                                         LS      LSO     426
LIBERIA                                         LR      LBR     430

ParseLog.pm  view on Meta::CPAN

    300 => "Multiple Choices",
    301 => "Moved Permanently",
    302 => "Moved Temporarily",
    303 => "See Other",
    304 => "Not Modified",
    305 => "Use Proxy",
    400 => "Bad Request",
    401 => "Unauthorized",
    402 => "Payment Required",
    403 => "Forbidden",
    404 => "Not Found",
    405 => "Method Not Allowed",
    406 => "Not Acceptable",
    407 => "Proxy Authentication Required",
    408 => "Request Time-out",
    409 => "Conflict",
    410 => "Gone",
    411 => "Length Required",
    412 => "Precondition Failed",
    413 => "Request Entity Too Large",
    414 => "Request-URI Too Large",

ParseLog.pm  view on Meta::CPAN

######################################################################
# lstatus(); returns %lstatus
=pod

=item *

C<lstatus();>

    %lstatus = $logobject->lstatus();

Returns a hash containing HTTP codes and messages (e.g. "404 Not Found")
for the last status (i.e., when the httpd finishes processing that 
request) as keys, and the hit count for each key as values. 

=cut

sub lstatus {
    my($this) = shift;
    return %{($this->{'lstatus'} || undef)};
}

ParseLog.pm  view on Meta::CPAN

######################################################################
# ostatus(); returns %ostatus
=pod

=item *

C<ostatus();>

    %ostatus = $logobject->ostatus();

Returns a hash containing HTTP codes and messages (e.g. "404 Not Found")
for the original status (i.e., when the httpd starts processing that 
request) as keys, and the hit count for each key as values. 

=cut

sub ostatus {
    my($this) = shift;
    return %{($this->{'ostatus'} || undef)};
}

t/samples/sample.agent.log  view on Meta::CPAN

Mozilla/4.04 [en] (Win95; I ;Nav)
Mozilla/4.04 [en] (Win95; I)
Mozilla/4.04 [en] (Win95; U ;Nav)
Mozilla/4.04 [en] (Win95; U)
Mozilla/4.04 [en] (WinNT; I ;Nav)
Mozilla/4.04 [en] (WinNT; I)
Mozilla/4.04 [en] (WinNT; U ;Nav)
Mozilla/4.04 [en] (WinNT; U)
Mozilla/4.04 [en] (X11; I; Linux 2.0.33 i586; Nav)
Mozilla/4.04 [en] (X11; I; SunOS 5.5.1 sun4m)
Mozilla/4.04 [en]C-PBI-NC404  (Win95; U)
Mozilla/4.04 [en]C-bls40  (Win95; U)
Mozilla/4.04 [fr] (Win95; I ;Nav)
Mozilla/4.04 [ja] (Macintosh; I; PPC, Nav)
Mozilla/4.04 [ja] (Win95; I)
Mozilla/4.04 [pt] (WinNT; I ;Nav)
Mozilla/4.05 (Macintosh; I; PPC)
Mozilla/4.05 (Macintosh; I; PPC, Nav)
Mozilla/4.05 (Macintosh; U; PPC)
Mozilla/4.05 [de] (Win95; I)
Mozilla/4.05 [en] (Win16; I ;Nav)



( run in 2.619 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )