Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Awstats filtering

Reply to Post Add a New Topic
UserPost

5:40 pm
June 6, 2007


Mango

Guest

hello, i wonder how i can filter stuff in AVstats, if i want for example to filter and IP address or a folder on my own webserver ?

6:15 pm
June 6, 2007


Jean-Luc

Admin

posts 1125

To filter some IP addresses from the stats, use the SkipHosts directive in AWStats config file. Example:

SkipHosts="127.0.0.1 REGEX[^192\\.168\\.]"

This excludes visitors coming from 127.0.0.1 and from any address in the 192.168.***.*** range.

To filter a folder, use the SkipFiles directive also in AWStats config file. Example:

SkipFiles="/folder REGEX[^\\/folder\\/]"

This excludes all hits on /folder and on any file within /folder.

Jean-Luc

 

7:16 pm
June 7, 2007


Mango

Guest

ok, thanks for the help, just one more thing, how do i filter a subfolder… is it just /folder/folder2 ? was just wondering about the regex

 also, when my stats update the "country" – "operating system" say ? on EVERYONE that visited my site. why?

10:58 pm
June 7, 2007


Jean-Luc

Admin

posts 1125

For the subfolder, use:

SkipFiles="/folder/folder2 REGEX[^\\/folder\\/folder2\\/]"

 

Regarding your other question, I have no idea and I need more details:

- unknown country: do you have IP addresses or domain names under "Hosts (Top 10)" ? do you use a plugin ?

- unknown operating system: are the browsers also unknown ?

Jean-Luc 

 

2:12 am
June 8, 2007


Mango

Guest

Yes, there is serveral IP addresses under "Hosts (Top 10)" over 25, and i do not use any plugin, i use pure standard install of awstats.

 and for unknown operating system, the browsers are shown correctly, it's just operating system and country that shows every ones as ? unknown.

2:53 pm
June 8, 2007


Jean-Luc

Admin

posts 1125

DNSLookup is disabled. To view the domain and the country of the visitors, you have to enable DNSLookup in AWStats configuration file:

DNSLookup=1

 

It is strange that the browsers are recognized and that the operating systems are not, because these informations come from the same field in the log file. Maybe your /lib/operating_systems.pm file is corrupted ?

Jean-Luc

3:31 am
June 10, 2007


Mango

Guest

indeed it seems it was, working now 🙂

Still got another question now that i found a problem thou hehe! 😉

 on my page i use a default file to guide my trafic, example bellow. when trafic is guided to a page, in awstats that hit is pointed towards default.php, so i can never se wich of my subdomains they used to go where on my page. is it possible to fix that ?

 Example

If they use test.izlik.com for example it's registerd as if they where to go to izlik.com, even if test.izlik.com takes them to another index.php file in a subfolder because the default.php is guiding the trafic…

redirect code:

 <?
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

if($_SERVER['HTTP_HOST']=='www.izlik.com){
  include("index.php");
}

if($_SERVER['HTTP_HOST']=='izlik.com'){
  include("index.php");
}

if($_SERVER['HTTP_HOST']=='test.izlik.com'){
  include("test/test.php");
}
?>

9:44 am
June 10, 2007


Jean-Luc

Admin

posts 1125

Hi,

Which page is "included" by php does not matter as the names of the included pages are not recorded in the log file.

It is usually better to have independent statistics when you have several subdomains. This demands that either you generate different log files for the different subdomains, or that the name of the subdomain is recorded for each hit in the log file. The first option is better. This requires that you configure the web server accordingly.

Jean-Luc

11:44 pm
June 10, 2007


Mango

Guest

ah i se! 😉 thanks

Last question coming up now actully 🙂

 

i had a look on this one

 http://ns3744.ovh.net/awstats/awstats.pl?config=destailleur.fr

 the demo for av stats and i se that on the side is the menu etc, in my aw stats i Have enabled the browser refresh but cant se it, also i dont have the menu in the side like the demo, it's on the top of the page like the design was not found or someting like it.

9:06 am
June 11, 2007


Jean-Luc

Admin

posts 1125

You do not see the left navigation bar and the "Update now" button, because you use "static HTML reports" (reports saved in HTML files). With the "dynamic reports" you get the navigation bar and the "Update now" button (http://…/awstats.pl?config=my_site).

Jean-Luc

11:25 pm
July 20, 2007


Dab

Guest

admin said:

To filter some IP addresses from the stats, use the SkipHosts directive in AWStats config file. Example:

SkipHosts="127.0.0.1 REGEX[^192\\.168\\.]"

This excludes visitors coming from 127.0.0.1 and from any address in the 192.168.***.*** range.

To filter a folder, use the SkipFiles directive also in AWStats config file. Example:

SkipFiles="/folder REGEX[^\\/folder\\/]"

This excludes all hits on /folder and on any file within /folder.

Jean-Luc

 


Does AWStats provide a way to filter IN by IP rather than  just to fillter OUT by IP? I'm administering a website that is accessed by subscriber institutions and I need to display only usage statisitcs for each institution's ranges of ips to be viewed by representatives of the particular institution. I imagine I would have to set up users and realms and set and create separate config files. Assuming that is the case, once having done that, can I filter the statistics to show only a few ip ranges? If there is no better way, can I use SkipHosts to filter out as many as a few hundred ip ranges?  

1:51 pm
July 26, 2007


Jean-Luc

Admin

posts 1125

Hi Dab,

The OnlyHosts directive in AWStats config file does that. Example:

OnlyHosts="127.0.0.1 REGEX[^192\\.168\\.]" 

Jean-Luc

 

7:18 pm
April 1, 2008


Steve

Guest

For the life of me, I have spent the last 4 days trying to get just one of my domains to show in awstats. I have one host with dozens of domain names, I only want one domain to show stats in awstats. I used the OnlyHosts="mydomain.com" and I get no records. With this blank I get records from all of my domains. I have tried REGEX examples and every combination there of and still nothing. Any help on this would be greatly apprecitiated. I am hosting with netfirms and using awstats 6.7 (build 1.892) Thank you in advance.

2:04 am
April 2, 2008


Jean-Luc

Admin

posts 1125

Hi Steve,

In AWStats terminology, a host is the computer of a visitor of your web site. Nothing to do with the domain name of one of your web servers.

Please let us know the LogFormat you have selected and copy here a line from your log file.

7:46 am
January 24, 2011


giorgos

Guest

I want to exclude my full domain which has the format test.test.provider.com. What format shall i use??

Is this one below correct?

 

SkipHosts="REGEX[\.test\.test\.provider.gr\.com$]"

Thanks and apologies for bringing up such an old thread! ;)

7:02 pm
December 23, 2012


webwiz

Guest

Steve said:

For the life of me, I have spent the last 4 days trying to get just one of my domains to show in awstats. I have one host with dozens of domain names, I only want one domain to show stats in awstats. I used the OnlyHosts="mydomain.com" and I get no records. With this blank I get records from all of my domains. I have tried REGEX examples and every combination there of and still nothing. Any help on this would be greatly apprecitiated. I am hosting with netfirms and using awstats 6.7 (build 1.892) Thank you in advance.

Hi Steve,

I can tell you how I did it using the "Blacklist.txt" in 7.1

First I made a new .txt file using each domains name ie: "domain-filter.txt"

The using the same format as the "Blacklist.txt" file I entered every domainname I "didnt" want to show in that report. ie:

# Referal filter for xxxxx.com

somedomain.com

anotherdomain.net

Ok after creating an identical config file for each domain ie: awstats.xxxxx.conf

I entered the path to the domain-filter.txt file under SkipReferrersBlackList= and changed each DataDir directory to one for each domain, then rebuilt each domains history file

using the same log files

Hope that helps…and makes sense….

good luckWink

7:18 pm
December 23, 2012


webwiz

Guest

First, I have a couple of domains parked on a single server with a single log that contains all hits….

Im using a .txt file and the SkipReferrersBlackList=" to filter out each domain and writing to a seperate data file for each domain

Im wanting to take it one step further and filter out the "Known" keywords and phrases for each domain using catch all type of line? ie:

google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDIQFjAA&url=ttp%3A%2F%2Fxxxxxxxxxx.com%2F&ei=XxjXUIfhK4SB0QHh9oDIDQ&usg=AFQjCNHkpnEeUtrZx05ExnN5lEgkB4-F8Q&bvm=bv.1355534169,d.dmQ"

xxxxxxxxxx.com is the keyphrase and the rest changes each time.

Maybe an if statement of some type to skip an entry

 

This is alittle over my head

ThanksSurprised

 

Nevermind, I figured it out myself… I was making it too complicated…

No need to post this….thanks

Reply to Post

Reply to Topic:
Awstats filtering

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
3 + 5
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)