Re: exclude a URL?

Roy T. Fielding (fielding@kiwi.ics.uci.edu)
Tue, 06 Oct 1998 15:35:39 -0700


>Do you know how to use the -n (-N) option to include (exclude) a URL 
>matching the perl regular expression? Say, if I want to include the URL 
>only with the domain "tamucc.edu", what should I type in the command line 
>in UNIX? I tried "wwwstat -n ".*tamucc\.edu.*" >file1 ", but it didn't 
>work.

Hmmm, are you working on a proxy log?  The main problem is that the
common logfile format does not include the hostname of the URL in
the request, so wwwstat wasn't prepared to look for it.  One thing
you can do is

    egrep 'tamucc\.edu' logfile | wwwstat

if it is a proxy log.

....Roy