Webalizer log -- finally (Sorta?) figured out?

Bradley Miller bradmiller_kclug at sbcglobal.net
Sat Jan 24 22:15:35 CST 2004


To clarify that -- the script goes under each web site's location.   So

  /home/sites/company1/logs/analyze.sh
  /home/sites/company2/logs/analyze.sh
  /home/sites/company2/logs/analyze.sh

And the log file would be read like this:

  /home/sites/company/logs/2003/11/access.01 - day 1, november, 2003
  /home/sites/company/logs/2003/11/access.02 - day 2, november, 2003

At 03:15 PM 1/24/2004, Jonathan Hutchins wrote:

>On Saturday, January 24, 2004 08:08 am, Bradley Miller wrote:
> > Here's what I ended up making as a script under /home/sites/company/logs/:
>
> > for i in ./*/*/access.*
> > do webalizer -o ../web/stats/ $i;
> > done
>
> > It needs more tweaking for customization and such.  Now I just need to
> > stick that in my crontab to run every night -- right?
>
>If I'm not mistaken, that will run webalizer once against your log for your
>whole site for each of the directories it finds, generating an identical
>output in each directory.
>
>I think you need to tell it to use some sort of differentiation on the input,
>otherwise just make one run and copy the output.
>
>
>
>




More information about the Kclug mailing list