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
+------------------------------------------------------------------------

Reply via email to