after trying several combinations, I have no idea how to get analog to count the occurences of one file (thing.gif) in the logs,
and count it as a page.
simply doing:
PAGEINCLUDE /images/thing.gif (or, just thing.gif)
or
FILEINCLUDE /images/things.gif (or, just thing.gif)
with or without:
ARGSEXCLUDE /images/thing.gif (or just thing.gif)
or any combination of the above....just doesn't work.
can someone please help me ? explaining to people why the 'powerful' analog log analysis tool can't do better than "zgrep -c" is getting tiresome.
--john
On 9/1/05, John Allspaw <[EMAIL PROTECTED]> wrote:
actually, I do want to include it as a "page" because we've placed the thing.gif only on pages we'd like to count.
this is done to simplify what we'd like to count, instead of constantly maintaining long exclude/include lists, since not all *.php pages are to be counted as "pages".
I don't want to count the unique strings after the ? because those are just timestamps, placed there to make sure that the browser doesn't cache the gif.
I assumed that putting ARGSEXCLUDE /images/thing.gif would force it to treat every request for thing.gif as the same, no matter what the query string...is that correct ?
Since posting, I believe I figured it out...I see:
confline(op, "PAGEINCLUDE", "*/", NULL, -1);
confline(op, "PAGEINCLUDE", "REGEXPI:\\.html?$", NULL, -1);
in src/globals.c.
So no matter what you put in the PAGEEXCLUDE/INCLUDE list, if you compile analog with this, then you will *always* be including:
- */
- REGEXPI:\\.html?$
?? is that right ? please someone smack me for not seeing anything about this in the analog docs.
--john
On 9/1/05, Jeremy Wadsack <[EMAIL PROTECTED] > wrote:The command you want is FILEINCLUDE. However, when a request includes a
query string, you need use a wildcard to include all matches:
FILEINCLUDE /images/thing.gif*
See http://analog.cx/docs/include.html for a discussion.
PAGEINCLUDE would mean that this is included in Page Requests, which is
probably not what you want.
ARGSINCLUDE means that the request reports will list sub-items for each
unique query string, which may prove interesting if those numbers have
specific meaning.
--
Jeremy Wadsack
Seven Simple Machines
John Allspaw wrote:
> A colleague and myself have been having the worst time trying to get
> analog to do a simple thing:
>
> count only the occurences of one single file in the access logs.
>
> and with no luck at all.
>
> We've been using analog for apache log processing for years now, and
> never have had many issues. Maybe something is escaping us, but
> basically we've put a 1x1 pixel gif on the site, on only those pages
> that we'd like to count, and want to only include that in our reports:
>
> /images/thing.gif?0485033001125610205
>
> where the number is a timestamp, to prevent browser caching.
>
> That's it. We want to ignore everything else. At this point we don't
> care about referrers or DNS. We just want an accurate count of
> pageviews, and since this case 1 page=
>
> We've been over and over the excludes/includes list. Can someone
> please help ?
> I can't imagine that it's not something like:
>
> PAGEINCLUDE /images/thing.gif
> FILEINCLUDE /images/thing.gif
> ARGSEXCLUDE /images/thing.gif
>
> and that's it, right ? I'd hate to think that in this case analog
> could be replaced with "zgrep -c thing.gif /var/logs/*-access.log.gz"
>
> thanks in advance.
> john
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
+------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.meer.net/mailman/listinfo/analog-help | | Analog Documentation: http://analog.cx/docs/Readme.html | List archives: http://www.analog.cx/docs/mailing.html#listarchives | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general +------------------------------------------------------------------------

