Klaus Boehme wrote:
> I am using Analog 4.1 (linux/apache) with separate virtual domain LOGFILEs
>
> All is working fine with separate configs.
>
> I have also set up a config with multiple domains in it (multiple LOGFILE
> listings).
>
> It works well to one combined OUTFILE (eg stats.html).
>
> My question, is it possible to have separate OUTFILEs for each virtual from
> the single config?
>
> I hope I've made that clear!!
>
> Thanks
>
> Klaus
One run, one OUTFILE. But it would be easy to set up a script to run Analog
once for each logfile -- and you could also reuse the same config file for each
run, specifying logfile and outfile on the command line.
Assuming you're running Perl, which in a Linux/Apache environment is highly
likely, it'd be something like this:
#!/usr/bin/perl
opendir DIR, "/your/log/directory" or die "Can't open directory";
@logs = grep (/whatever works/, readdir DIR);
closedir DIR;
foreach $logfile (@logs) {
$outfile = some_calculation_from ($logfile);
system "/my/path/analog +gyour.config +C\"OUTFILE=$outfile\" $logfile";
}
(With apologies to Aengus, who surely knows off the top of his head what the
proper switch is for specifying OUTFILE on the command line -- but this should
work.)
Michael
------------------------------------------------------------------------
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]/
------------------------------------------------------------------------