Hi,
I would like to get the number of "visits" for each domain that is mentioned as a referrer. Say we have n domains as referrer and associated counts for the number of "visits" vc_1, vc_2, …, vc_n for each domain. If k is the total "number of visits" reported by awstats then the equation
k = vc_1 + vc_2 + … + vc_n
should be true. Let´ s consider the following manually created logfile:
11.11.11.11 – - [04/Aug/2008:05:55:30 +0200] "GET / HTTP/1.1" 200 7031 "http://www.example1.com/" "Mozilla/5.0 …"
11.11.11.11 – - [04/Aug/2008:05:56:30 +0200] "GET / HTTP/1.1" 200 7031 "http://www.example1.com/" "Mozilla/5.0 …"
22.22.22.22 – - [04/Aug/2008:05:57:30 +0200] "GET / HTTP/1.1" 200 7031 "http://www.example2.com/" "Mozilla/5.0 …"
22.22.22.22 – - [04/Aug/2008:05:58:30 +0200] "GET / HTTP/1.1" 200 7031 "http://www.example2.com/" "Mozilla/5.0 …"
This results in "number of visits" = 2. What I would like to have for this example is a table that tells me that there is one "visit" from example1.com and one "visit" from example2.com.
Does anybody know how that can be done?