I'm working on AWstats and on Apache Server for a firm and my boss ask me to do something :
In the extra Section called Country Activities, I have some address IP like those :
10.200.1 or 10.23.12 or 10.16.23 …….. and Pages, Hits, Bandwidth and Last Visit.
My boss would like me to do something in order to not have the IP address but the name (and the flag) of the country (I have the name of each IP and country).
I have already done this for the section Visitors domains/countries (Top 10) (by resolving Domain
if ($Host =~ m/^10.16/) {$Domain = 'pl'}
) but in awstats.pl file (I had automaticaly the name and the flag of the country).
What you try to do is what the standard "Countries (Top 10)" and "Countries (Full list) sections do in your AWStats report. If this is exactly what you need, there is no need for an extra section.
You do not have to install AWStats on each server. As long as one copy of AWStats can have access to the log files of all servers, that is all what is needed.
If each server is for a different web site, I guess that you need detailed reports for each web site anyway. I am not sure about the kind of stats you would like to have on one web page.
If the log files from the other servers are not directly available to AWStats, you need to FTP them to the stats server first. Then you use the regular procedure. One copy of AWStats is enough for all servers, but you need a config file for each server.
In a previous post, you asked: "How could I add logfile from other server? "
Now you write: "I do not manage to have statistics for others servers… "
I am as confused as you are… Do you have several web sites each with a different domain name ? Do you wish to get the stats for all these domains ? Or maybe you are speaking about a load balancing configuration with several servers used for one web site ? Please explain.
Awstats collect statistics from 4 servers. Each server correspond to one or 2 countries. And in my AWStats report web page, I don't have the statistics for all the servers. I would like to collect statistics from the servers I want.
How I can do if I want to analyze log file from server 7 and 9. (AWStats is on the server 4)
If you need more informations, just ask exactly what you need.
Sorry, but I still do not understand your questions.
You wrote: "Awstats collect statistics from 4 servers ". As you have been able to install AWStats for these 4 servers, why is it more difficult for the other servers ?
Maybe you can try to do the installation for another server and let us know what error you get.
Statistics should be available with commande like this:
THe only problem, It's not me who install AWStats for the firm… the guy who did it is not working for the firm right now. The firm ask me to implement AWStats for some servers. I don't have any knowledge of AWStats and perl.
I'm just trying to understand what the guy have done and how he has done.
You tell me "but you need a config file for each server." I have made a config file for each server but do i have to put it in each server corresponding or I put it in the directory of AWStat with the other config file????
As I said in a previous message above: "You do not have to install AWStats on each server. As long as one copy of AWStats can have access to the log files of all servers, that is all what is needed. "
Please understand that I cannot repeat here all the steps that are described in AWStats installation instructions . By the way, these installation instructions are far from perfect, but they are a good starting point.
In my humble opinion, your firm should give you enough time to learn and play with AWStats to understand how it works and how you can set it up according to your needs and, if this is not possible, they could pay someone to do the job. We would be pleased to do it (just send an email to awstats@internetofficer.com if you want to get a price quote).