mvam has asked for the wisdom of the Perl Monks concerning the following question:

i'm using apache::parselog. trying to use getCustomLog method to work, but whenever i specifiy a log nickname to this method it always reports that the log file doesnt exist. is there something i'm missing in the docs?

Replies are listed 'Best First'.
Re: apache parselog
by Anonymous Monk on Mar 23, 2004 at 22:27 UTC
    is there something i'm missing in the docs?

    maybe, but module is old and broken

      wonderful. is there another way to parse the %T value for each page?
        Yes, there is. Create a hash, say  %pages and then for each line in your log grab the page and the time it took to serve the page. Use the page as the key to your hash and the time taken to serve the page as the value. By assigning  $pages{$page} += $time; you can keep a tally for total time spent serving each page. If you keep another hash for times served you can calculate the average too.

        If you want our help, you really need to offer up the data you have, the results you want, and the effort (CODE) you've put into the project so far. . .

        - - arden.