On Mon, 26 Feb 2001, Joel R. Finkel wrote:
> 
> In the following example, I simply want the stats to exclude the inclusion
> of 192.168.0.2.
> 
> 2001-02-20 15:52:35 192.168.0.2 GET /WebStats/images/analogo.gif
> Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0)
> http://www.foo.org/WebStats/report_me.html
> [... more lines ...]
>
> >
> > HOSTALIAS 192.160.0.2 www.foo.org
> > HOSTEXCLUDE www.foo.org
> >

With the correction 160 -> 168, this works fine for me. For example,

analog ~/tmp/he.log -G -A +Sr1 +a +C"HOSTALIAS 192.168.0.2 www.foo.org" \
  +C"HOSTEXCLUDE www.foo.org"

(where ~/tmp/he.log is your logfile) produced:

General Summary
---------------
Successful requests: 0
Logfile lines without status code: 7
Distinct hosts served: 1
Unwanted logfile entries: 4
----------------------------------------------------------------------------

Host Report
-----------
Listing hosts with at least 1 request, sorted by the number of requests.

reqs: %bytes: host
----: ------: ----
   4:       : 216.80.53.121
----------------------------------------------------------------------------

whereas without the HOSTEXCLUDE it produced:

General Summary
---------------
Successful requests: 0
Logfile lines without status code: 11
Distinct hosts served: 2
----------------------------------------------------------------------------

Host Report
-----------
Listing hosts with at least 1 request, sorted by the number of requests.

reqs: %bytes: host
----: ------: ----
   4:       : 216.80.53.121
   4:       : www.foo.org
----------------------------------------------------------------------------

(I tried it with 4.16 and 4.90beta3.)

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
  "Your account can only be used for a single internet session at any one
   time and for no more than 24 hours in any one day." (NTL terms of use)


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to