Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Obtaining Apache logfile stats?

by mvam (Acolyte)
on Mar 25, 2004 at 21:34 UTC ( [id://339884]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Obtaining Apache logfile stats?
in thread Obtaining Apache logfile stats?

this did produce the average time, but ended up with

Use of uninitialized value in regexp compilation at ./avgtime.pl line 6, <DATA> line 12.

this repeated for each line in DATA. i'm a perl moron as you can see, but i'm trying. the down side to these log files is that they can reach 2GB in a matter of hours so creating the temp result file can get somewhat expensive. i'm thinking about grepping out anything with a zero value since really we only want to see when the server has a load
  • Comment on Re: Re: Re: Obtaining Apache logfile stats?

Replies are listed 'Best First'.
Re(4): how do i sort thee?
by DamnDirtyApe (Curate) on Mar 25, 2004 at 21:57 UTC

    Did you pass in the filename to average on the command line?

    perl ./avgtime.pl mod_rewrite.html

    Sorry, forgot to mention that - figured you'd pick it up from the code.


    _______________
    DamnDirtyApe
    Those who know that they are profound strive for clarity. Those who
    would like to seem profound to the crowd strive for obscurity.
                --Friedrich Nietzsche

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-18 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found