1. You call this field %extra1 in the LogFormat directive and you use the extra1 variable in one or more extra sections.
2. You create a second config file where you call this field %bytesd . The data bytes and bandwidth fields in these new AWStats reports will refer to the traffic sent to the server. Of course, the traffic from the server will not be reported here.
3. You edit awstats.pl in order to fully support this field within AWStats. This is not an easy task.
>>> 1. You call this field %extra1 in the LogFormat directive and you use the extra1 variable in one or more extra sections.
Can you write an example for an extra section using this extra1 variable ?
>>> 2. You create a second config file where you call this field %bytesd . The data bytes and bandwidth fields in these new AWStats reports will refer to the traffic sent to the server. Of course, the traffic from the server will not be reported here.
Can I create a second config files in the same directory together with first files ? I don't understand how, if I've aewstats.<domain>.conf as config file, how can I add another config files used from awstats on this <domain> ? what name ?
I am afraid solution 1 is not going to produce useful results. This was not a very good suggestion from me.
Regarding solution 2: the config files are named awstats.SOMETHING.conf where SOMETHING can be any name. So, for example, you can have awstats.my_domain.com.conf and awstats.number_two.conf . Just make a copy of the existing config file, rename the copy and then make the necessary changes in LogFormat . Run the stats updates for the second configuration as you do for the first one.
Up to now I installed one awstat copy for each domain root… I think there was a nexus between awstat <–> domain in order for awstats.pl script and stat site work fine…
So I can install only one awstat dir and put any config files for the others domain (naturally with corresponding log files configured) ?
Absolutely ! You can have one copy of AWStats with several config files. This will be much easier to manage than having multiple copies of awstats.pl .