[yaala] Re: Re: lib/Data/Core.pm: Unavailable aggregation requested: ``requests''. Returning 0

Martin Juhl Jørgensen yaala@verplant.org
Mon, 17 Nov 2003 15:49:43 +0100


> On Sun, Nov 16, 2003 at 09:02:52PM +0100, Martin Juhl J=F8rgensen wrote:
> > I'm getting the "lib/Data/Core.pm: Unavailable aggregation requested:
> > ``requests''. Returning 0" error when tring to parse a standard apache
> > access log file.
>
> That error mostly indicates that either no line could be parsed (e.g. an
> empty logfile) or no record matched your ``where statement''..

Well the logfile isn't empty > 6000 lines, and I don't really have a "where"
in my 'select' query.

> Please make sure, that the ``logtype'' option is set correctly (should
> be ``common'') and that there is any data in the logfile.

It is set to 'common'

> If you use ``where statements'', you can set $::DEBUG to any non-zero
> value to have yaala dump the ``query'' that resulted in the error
> message. Also, when $::DEBUG is non-zero all lines that didn't match the
> selected parser are written to STDERR. That should be a LOT, if you
> selected the wrong one..

I took out a little snippet from the logfile så it didn't have to parse it
all and print out all the errors to STDERR, but it does complain on every
single line from the logfile.

<---------- snippet -------------->

lib/Parser/Common.pm: Unable to parse: '80.199.163.103 - -
[16/Nov/2003:07:44:41 +0100] "GET / HTTP/1.1" 200 4526 "-" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1)"'

.......

lib/Data/Core.pm: selection not defined in $VALUES_PER_FIELD.
lib/Data/Core.pm: Unavailable aggregation requested: ``requests''. Returning
0.
lib/Data/Core.pm: $sel = [
lib/Data/Core.pm:          [
lib/Data/Core.pm:            'requests'
lib/Data/Core.pm:          ],
lib/Data/Core.pm:          [
lib/Data/Core.pm:            'host'
lib/Data/Core.pm:          ],
lib/Data/Core.pm:          []
lib/Data/Core.pm:        ];
lib/Data/Core.pm: $query = {};

<---------- snippet -------------->

Hope this helps you, help me : )

- Martin