Awstats filtering


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Awstats filtering

Add a New Topic Reply to Post
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 220

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 220

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 220

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 220

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 220

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 220

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 220

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.

Add a New Topic Reply to Post


Reply to Topic: Awstats filtering

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 3 + 11        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

4 Guests

Maximum Online: 20

Forums:

Groups: 2

Forums: 7

Topics: 104

Posts: 493

Members:

There are 26 members

There are 94 guests


Jean-Luc has made 220 posts

Top Posters:

Steve - 14

angelko - 4

cwei - 4

Kinglui - 3

vtroymck - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)