You can't.  Well, the rule is with Analog: one run, one output.  If you need
three outputs, you need to run it three times; a good way to do this with
virtual hosting is to write a Perl script which reads the directory where you
keep your virtual hosts' logs, and use +C to build a command line for Analog
which specifies a separate LOGFILE and OUTFILE for each one of your log files.

Hope that helped!
Michael

Brian Tobin wrote:

> I am using Analog version 4.11 on a Redhat linux 6.2 system.  I installed it
> via RPM and it works perfectly fine with just one log file.  Since I host 3
> web sites on my server, all logged to seperate files, I thought it would be
> a good idea if every web site I hosted could have it's own report made from
> it's own logfile.  To do this, in the sample virtual hosts config file, it
> says :
>
> "There are basically two ways to set up your web server if you are serving
> lots of virtual domains. The first, which is usually better if you don't
> have many virtual domains, is to log them all to different logfiles. Then
> you can analyse each single domain independently."
>
> The only problem with that is my question, "How do I analyze each domain
> separately?"  Right now my config file looks like this:
>
> LOGFILE /home/brian/logs/fleacircus.org-access_log http://www.fleacircus.org
> OUTFILE /home/brian/public_html/log/logfile.html
> HOSTNAME "Flea Circus"
>
> LOGFILE /home/jhague/logs/koingosw.com-access_log http://www.koingosw.com
> OUTFILE /home/jhague/public_html/log/index.html
> HOSTNAME "Koingo Software"
>
> LOGFILE /home/msedore/logs/mikesedore.com-access_log
> http://www.mikesedore.com
> OUTFILE /home/msedore/public_html/log/index.html
> HOSTNAME "MikeSedore.com"
>
> When this runs, however, this it will display perfectly for the flea circus
> logfile.  Everything that's in fleacircus.org-access_log will be shown in
> the corresponding report, nothing more.
> The koingosw.com one does not work so well.  It's report displays all info
> for the koingosw.com-access_log AND the fleacircus.org-access_log.  The
> mikesedore.com report displays info from mikesedore.com-access_log,
> koingosw.com-access_log AND fleacircus.org-access_log.  I'm asking how I can
> get all three of these logfiles to produce their very own independant
> report.  Thanks for your help.
>
> Brian Tobin
> [EMAIL PROTECTED]
> ------------------------------------------------------------------------
> This is the analog-help mailing list. To unsubscribe from this
> mailing list, send mail to [EMAIL PROTECTED]
> with "unsubscribe" in the main BODY OF THE MESSAGE.
> List archived at http://www.mail-archive.com/[email protected]/
> ------------------------------------------------------------------------

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to