You should create a script which runs analog on multiple different log files.
Example (ksh on unix):
/bin/ksh
# log structure: /some/path/to/logs/<instance_name>/access.log
# config file structure: /some/path/to/logs/<instance_name>/config.cfg
# output structure: /some/path/to/output
# instances: /some/path/to/logs/<instance>/access.log where <instance> is a
unique directory containing a log for that instance
instances=/some/path/to/logs/*
ANALOG=/path/to/analog/binary/analog
for instance in $instances
do
I=`basename $instance` # set I = <instance_name>
C=$instance/config.cfg # set C = <config_file>
A=$instance/access.log # set A = <log>
O=/some/path/to/output/<instance>
if [ ! -d $O ] # if output dir doesn't exist, then create it
then
mkdir $O
fi
$ANALOG -O$O +g$C $A # (run `analog
-O/some/path/to/output/<instance> +gconfig.cfg access.log
done
-----------
You'll have to modify the above code to work in your environment, if you have
no clue what the code is trying to do then you'll need someone who knows how to
script in order to accomplish what you are looking for.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hanna Rajaniemi
Sent: Monday, February 13, 2006 8:55 AM
To: [email protected]
Subject: [analog-help] I need help with several different statistics
pages
Hi,
I have many different websites, and I need to make a statistics page for
them, so that I get one page for one site. In the Analog FAQ they say
this:
"I want to make several different statistics pages. Do I have to install
several copies of analog?
No. Just install it once, and run it with different configuration files.
(You do have to run it once per output page though.)"
I do not understand, if I make several config files for example
website1.cfg, website2.cfg etc. then how does the analog know how to run
these files? I can't get this work and I really need help with this.
Br,
Hanna
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------