in reply to Re: apache parselog
in thread apache parselog

wonderful. is there another way to parse the %T value for each page?

Replies are listed 'Best First'.
Re: Re: Re: apache parselog
by arden (Curate) on Mar 25, 2004 at 20:37 UTC
    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.