Adam Hobach ([EMAIL PROTECTED]; Monday, July 01, 2002 12:07 PM):

> Has anyone written some Analog scripts to find the Total data
> transferred for a given month for several hundred domains on one
> server? Are you willing to share that code?

Analog can tell you this with the Virtual Host report or Directory
Report depending on how you have your virtual hosts set up.

> Currently we have Analog setup to use report magic and write all the
> webstats to a STATS directory inside of each domain. We would like a
> separate report to show us just the Total data transferred for each
> month per domain. We don't want to search through everyone's stats
> directory for that info...

> Below is the type of report we are looking for:
> ----------------------------
> Domain Name: ####.com
> Total data transferred: ##### GB
> ----------------------------

In order for Analog to do this, you need to analyze all your logs at
once (assuming each site has it's own logs). If your log files have
the virtual host information in them, then Analog can tell you this in
the Virtual Host report. If not, add the host name as the second
argument for the LOGFILE command, and your directory report will give
you a list of hosts and their usage (you may have to add 'B' to the
DIRCOLS line in your Analog config to get bytes in the report).


> Computer type: Windows, IIS 5

If you don't want to have to analyze the logs a second time, a script
could be written to get this information. If you save the data files
Analog writes for Report Magic, then you can parse those for a line
containing the total transfer that starts with 'x  BT    ' (assuming '
' is your COMPSEP). This would be easy in Perl. Not sure what script
to suggest though for Windows machine.

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/analog-help@lists.isite.net/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to