Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AWSTATS bytes transferred different to Report Magic

Status
Not open for further replies.

dluvsu

Programmer
Jan 18, 2004
11
ZA
Hi there,
I have set up AWSTATS on a server with multiple user accounts. AWSTATS provides detailed statistics for each domain on the server. My problem is that I am also using Report Magic to generate stats and the total Bandwidth/bytes tranferred for a month is significantly more than the AWSTATS total. The number of hits/page requests is exactly the same. Has anyone had a similar experience? Any ideas on why this happens?

Thanks
Darren
 
What files are both programs reporting on, and what can you tell us about both Programs

--Paul
 
Both are perl scripts and reading combined apache log files.
awstats.pl parses log files and generates stats itself while rmagic.pl uses a program called analog to parse log files and then generates the stats.
 
When you say significantly more can you give an example.

In past times working on COBOL, I could give a possible answer based on variable declarations.

Here I'd guess that both programs are using different sources for their calculations, or that one is rounding up to the nearest Kilobyte, as opposed to the actual number of bytes. If this is the case, write a short script to analyse /var/log/httpd/access_log, bear in mind that your analysis programs will cycle through all available logs, but for the purposes of a test you should be OK with just one file

HTH
--Paul
 
The difference is about 30Mb - Huge I know, which is why it is such a concern. Also strange that no. of requests is identical but then bandwidth is so radically different. Do have a script that parses log files and those totals line up perfectly with Report Magic.
 
dluvsu,

In that case it's either a support call to AWSTATS, or scrap it. If you don't trust it, or the reasoning ain't sound, not worth having IMHO.

If you have Report Magic, and you like it, and it tallies with your own script, how come you're looking at AWSTATS.

--Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top