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

Bandwith without received size (upload size)

Reply to Post Add a New Topic
UserPost

8:13 am
December 11, 2009


robaps

Guest

We have an application that often use to upload files on web server (so web server can save this files in a file repository, database, …).

Those uploads are logged in IIS log file recording file size as cs-bytes (received bytes)

We cannot make right statistics without a bandwith that include cs-bytes (awstats sum only sc-bytes – sent bytes).

Can we do something ?

Do you have plan to add received bytes too in future versions ?

Can we simple change awstats.pl to add this value ?

thank you

9:34 am
December 11, 2009


Jean-Luc

Admin

posts 1125

Hi,

There are several ways to deal with this:

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.

In most cases, I would recommend solution 2.

9:58 am
December 11, 2009


robaps

Guest

>>> 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 ?

10:19 am
December 11, 2009


Jean-Luc

Admin

posts 1125

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.

11:42 am
December 11, 2009


robaps

Guest

OK. But I'll see

awstats.my_domain.com.conf  

pointing to http://my_domain.com/awstats/awstats.pl

how can I see awstats.number_two.conf  stats page ?

Can I see online only one at a time ?

12:05 pm
December 11, 2009


Jean-Luc

Admin

posts 1125

http://my_domain.com/awstats/awstats.pl  is the same as http://my_domain.com/awstats/awstats.pl?config=my_domain.com.

To view the second report, use :

http://my_domain.com/awstats/awstats.pl?config=number_two

To run the updates from the command line, the commands should look like this:

awstats.pl -config=my_domain.com -update

and

awstats.pl -config=number_two -update

12:33 pm
December 12, 2009


robaps

Guest

Great…

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) ?

3:47 pm
December 12, 2009


Jean-Luc

Admin

posts 1125

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 .

Reply to Post

Reply to Topic:
Bandwith without received size (upload size)

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 + 1
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
7 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 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)