Okay, cool, second question and this one is relevant (at least I think it
is)
We do our work through a perl script since the program is to process log
files that are for seperate companies that exist in the same directory. It
goes from one file to the next. Is there anyway that you might know of to
get analog to process two different variants of a logfile for the same
company?
ie
www.company1.com-access_log
www.company1.com-access_log.Dec
the other companies would have a similar setup as well. This would be for
just this month since the changeover made some of the logfiles a bit screwy.
I'll include our perl script below for your perusal just in case it helps
clear up what I am saying above.
#!/usr/local/bin/perl
@doit=<`pwd`/*log>;
#if !(-e hits) {
# print "Generating general hit report \"hits\"\n";
# system("wc -l *_log > hits");
# print "Done.\n\n";
#}
foreach $let (@doit) {
$se=$let;
$se=~s/\_log/\.sta/;
if ($se eq $let) {
print "Outfile equals infile! Skipping.\n";
}
else {
print "Doing $let\n";
`../analog/analog +C"HOSTNAME '$let'" $let > $se`;
}
}
Hope that helps clear it up enough.
Erik
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Emmett Hogan
Sent: Friday, January 14, 2000 8:16 AM
To: [EMAIL PROTECTED]
Subject: Re: [analog-help] Multiple Logfiles
Sure you can...from the Analog docs:
You can have several LOGFILE commands. You can include wildcards in
the logfile name (but not necessarily in the directory name: this is
system-dependent), and you can use a list of logfiles separated by
commas (without spaces). So the following commands would tell analog
to read logfile1, c:\logs\logfile2, and all files ending in .log:
LOGFILE logfile1,*.log
LOGFILE c:\logs\logfile2
Hope this helps,
Emmett
On Thu, Jan 13, 2000 at 03:30:37PM -0800, Erik Kremsreiter wrote:
> Hi there,
>
> I couldn't seem to find the answer anywhere in documentation... can
> Analog handle, assimilate and basically process two logfiles at the
> same time? I know that Webtrends can, was curious if Analog could
> also and how that might be accomplished.
>
> Erik
--
Emmett Hogan, GNAC
------------------------------------
It's lonely at the top, but you eat better.
------------------------------------
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" 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 analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------