homepage Welcome to WebmasterWorld Guest from 54.197.130.16
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
REGEX in AWSTATS
REGEX, AWSTATS, range
cssatsc




msg:3906063
 10:01 pm on May 3, 2009 (gmt 0)

How do I specify an IP address range for SkipHosts in an AWSTATS conf file?

I am trying to filter out my own admin traffic from the awstats logs but unfortunately my ISP's netmask is not as simple as 24 bit, 16 bit, etc. but rather something like this:

72.92.128.0/19

Currently, whenever my own IP address changes by the ISP, I simply update the SkipHosts list:

SkipHosts="REGEX[^71\.169\.] REGEX[^71\.161\.] REGEX[^72\.92\.]"

However, this is inconvenient and I would like to set it once and for all but I got lost in the syntax.

Is there a simple way to simply filter out 72.92.128.0/19?

Thanks.

 

netchicken1




msg:3906118
 2:37 am on May 4, 2009 (gmt 0)

How do you do it 'normally'?
I would love to be able to filter out my interal traffic from my awstats

cssatsc




msg:3906755
 12:01 am on May 5, 2009 (gmt 0)

How do you do it 'normally'?

Just as I described above: in AWSTATS's .conf file (directory location varies among web hosts) I modify the line:

SkipHosts=""

To:
SkipHosts="REGEX[^71\.169\.] REGEX[^71\.161\.] REGEX[^72\.92\.]"

Now... REGEX, by definition, is great for strings. But 72.92.128.0/19 is not just a string, it is a mathematical notation (aka CIDR, or "Classless Inter-Domain Routing").

Any idea whether there is a way to use this CIDR notation in AWSTAT to filter out all addresses covered by it?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved