On Tue, 11 Jan 2000, Jim Sander wrote:

> things. You can look at this as a failure of either- and deciding which
> would raise philosophical questions inappropriate to the discussion. :)
> It's easier for me to correct a problem with my understanding though.
> 
>    OK, now I'll try something completely different
> $: cd /logdir; analog access_log 
> 
>    And it works just fine! Eureka, we've found the answer- although it's
> ugly and inconvenient in a lot of ways. (especially if you have a
> situation like mine where you have a lot of different log files on the
> same machine and need to run analog against them regularly) 
> 
>    With creative scripting, this can easily be worked around using
> customized cfg files for each site. But even that is completely
> unnecessary- there are several ways to creatively fix this situation- the
> easiest/best I have found is this:
> 
> set the LOGFORMAT in default.cfg to "stdin" and execute analog as:
> $: cat /logdir/whatever /tmp/whatever.log | analog
> 
>    So, why do we even have this logformat/logfile association? The key (I
> believe) is in the optional third argument to the LOGFILE config- allowing
> you to force a hostname to be associated with that file. That means I can
> run one "big" analog process to analyse all the domains on a system, each
> with their own log files, each in a custom format- in fact, each with
> several custom formats- and get a big virtual host report. 
> 
>    It also means that Analog doesn't have to decide for each line in a log
> file exactly what format it should use. (a HUGE speed benefit I am sure)
> 
>    Still, a "default" or "forced" format would be nice- thus allowing
> LOGFORMAT w/o a LOGFILE directive. Or maybe a way to specify wildcards in
> the LOGFILE directive? (LOGFILE /logs/vhosts/*/log) Maybe there are
> reasons not to do this, or better ways using existing commands.
> 
>    Hopefully my examples/ideas help someone out- even if it's just me. :)
> 
> -=Jim=-
> 
> 
> ------------------------------------------------------------------------
> 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/analog-help@lists.isite.net/
> ------------------------------------------------------------------------
> 

-- 
Stephen Turner    [EMAIL PROTECTED]    http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
  "Children from St Lawrence's School have buried a time capsule to mark both
   the millennium and National Tree Week." Cambridge Town Crier, 16/12/99

------------------------------------------------------------------------
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/analog-help@lists.isite.net/
------------------------------------------------------------------------

Reply via email to