The way that I do automated reports are as follows:

Apache logs it's information into the
/www/<virtual-host>/logs/access/<year>-<month>-access.log using piped log's
into the cronolog application using the following directive for each virtual
host.

CustomLog "|/usr/local/sbin/cronolog
/www/<virtual-host>/logs/access/%Y-%b-access.log" combined

I made a general analog.cfg and also have a daily.cfg, monthly.cfg and
yearly.cfg for Analog 5.21, for example my monthly.cfg contains the
following:

LOGFILE /www/<virtual-host>/logs/access/%Y-%m-access.log
OUTFILE /www/<virtual-host>/docs/logs/monthly-reports/%Y-%m-accesslog.html
CHARTDIR /logs/charts/%Y-%m-accesslog-
LOCALCHARTDIR /www/<virtual-host>/docs/logs/charts/%Y-%m-accesslog-

They run using the following cron tab entries:

30 1 * * * /usr/local/analog/analog-5.21/analog
+g/usr/local/analog/analog-5.21/daily.cfg
59 23 28-31 * * /usr/local/analog/analog-5.21/analog
+g/usr/local/analog/analog-5.21/monthly.cfg
59 23 31 12 * /usr/local/analog/analog-5.21/analog
+g/usr/local/analog/analog-5.21/yearly.cfg

This gives me just what I want which is a very simple way to generate
different reports for daily, monthly and yearly periods reliably and simply
without having mega complex scripts and file copies going on all over the
place!

Obviously though, this all relates to UNIX though in my case so if it's no
use to you then hopefully it'll help someone else! ;-)

Cheers

John B

> -----Original Message-----
> From: Chuck Schick [mailto:[EMAIL PROTECTED]]
> Sent: 14 March 2002 15:49
> To: [EMAIL PROTECTED]
> Subject: [analog-help] Questions on automating analog????
> 
> 
> We do commercial web hosting and I want to Automate running 
> analog so that
> it will run for each domain and put the output in unique 
> folders for each
> domain.  I understand that this can be readily be done by setting up a
> config file for each domain.  My initial experiment will be 
> on a Windows NT
> server.    My present idea is to run analog on a weekly log 
> file and then
> place the output in a subdirectory for the domain. My 
> questions are this:
> 
> 1) Most domains are set up with log files running weekly.  
> When a week ends
> is there an automated way to copy the log file to a different 
> directory?
> 
> 2) Is there a way to have analog to delete the log file once 
> it is done?
> 
> 3) Does anyone have a good suggestion on how to readily 
> accomplish this
> maybe using a different approach?
> 
> All help is greatly appreciated.
> 
> Chuck Schick
> Warp 8, Inc.
> 303-421-5140
> www.warp8.com
> 
> 
> 
> 
> +-------------------------------------------------------------
> -----------
> |  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/[email protected]/
> |    http://lists.isite.net/listgate/analog-help/archives/
> |    http://www.tallylist.com/archives/index.cfm/mlist.7
> +-------------------------------------------------------------
> -----------
> 
> ______________________________________________________________
> __________
> This email has been scanned for all viruses by the MessageLabs SkyScan
> service. For more information on a proactive anti-virus 
> service working
> around the clock, around the globe, visit http://www.messagelabs.com
> ______________________________________________________________
> __________
> 

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they   
are addressed. If you have received this email in error please notify 
the system manager.

+------------------------------------------------------------------------
|  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/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to