Where is the sub domain bandwidth file locate?

Aziz

Verified User
Joined
Oct 4, 2004
Messages
125
Greetings,

Which file is the Bandwidth for the subdomains located..

I found bandwidth.tally (but I think thats for the main domain, am i wrong?).

if no, how would I read the bandwith.tally to get the subdomains bandwidth..

thanks,
aziz
 
Last edited:
You might have to read the apache log files directly. You could read the bytes file of the subdomain adding everything up to give you a total.

Subdomains are usually stored something like: domain.com.subdomain.bytes
In the /var/log/httpd/domains/ directory.

I haven't seen anything about pulling individual subdomain usage through the API yet.
 
jmstacey said:
You might have to read the apache log files directly. You could read the bytes file of the subdomain adding everything up to give you a total.

Subdomains are usually stored something like: domain.com.subdomain.bytes
In the /var/log/httpd/domains/ directory.

I haven't seen anything about pulling individual subdomain usage through the API yet.

I found the domain.com.subdomain.bytes file... but its empty..

thats also true for many other domain names of which have used alot of bandwidth, are they accurate?

It happens to be true for one domain, the file had list of numbers, adding those up will give me the byte size bandwidth usage?

Thanks,
Aziz
 
It happens to be true for one domain, the file had list of numbers, adding those up will give me the byte size bandwidth usage?
It should for what usage apache has logged.

However, the problem is if the logs are rotated, previous usage will be lost unless you store that somewhere else. That is why some logs are empty. Numbers should appear after causing usage on those subdomains through apache.
 
Back
Top