in reply to Problems with Apache::ParseLog

Have you tried looking at the names of the customer logs using:
@customlog = $base->customlog();
This returns an array containing "nicknames" of the custom logs defined in the $httpd_conf. It is a nickname that you pass to the getCustomLog method.

This is included in the cpan documentation Apache::ParseLog

Replies are listed 'Best First'.
Re^2: Problems with Apache::ParseLog
by londonjim (Initiate) on Aug 06, 2007 at 15:39 UTC
    Yes, I've tried that - the array returned by $base->customlog() has only one value, 'combined' (this is presumably OK since there's only one LogFormat entry in my httpd.conf):

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

    There is one CustomLog entry in my httpd.conf specifying the use of the 'combined' LogFormat:

    CustomLog /var/log/apache2/access_log combined

    Yet the script gives me the error:

    Apache::ParseLog::getCustomLog: combined does not exist, Exiting


    Thanks,
    Jim