Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 (Bishop)
on Jun 17, 2015 at 07:19 UTC ( #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
Node Status?
node history
Node Type: note [id://1130766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-08-09 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (54 votes). Check out past polls.

    Notices?