Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)

by kcott (Archbishop)
on Jun 17, 2015 at 07:19 UTC ( [id://1130766]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    ...
    CustomLog "/private/var/log/apache2/access_log" common
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    127.0.0.1 - - [22/Apr/2015:13:35:04 +1000] "GET /bin/admin.pl HTTP/1.1
    +" 401 509
    127.0.0.1 - ken [22/Apr/2015:13:35:21 +1000] "GET /bin/admin.pl HTTP/1
    +.1" 500 656
    127.0.0.1 - - [24/Apr/2015:04:51:49 +1000] "GET / HTTP/1.1" 200 45
    
  3. or download this
    Host:    127.0.0.1
    Logname: -
    ...
    Request: GET / HTTP/1.1
    Status:  200
    Size:    45
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1130766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found