[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Analog where users can see it?



Ahoy Carrie

1) You ask:

 > A client recently asked me to install Analog, a logfile statistics
> program:

> Well, this is already on the RaQs (v4.16 on my RaQ4).
> How can I set this up to spit out some type of result that my clients
> can read in their own directories?

a) In /etc/cron.daily put a file named, say, logreports. For each site where
you want Analog to run, put a line like thus:

/usr/local/sbin/analog +g/home/sites/site17/web/logreports/analog/analog.cfg

b) In /home/sites/site17/web make a directory named logreports and a
subdirectory named analog. In ~/logreports/analog put a confgi file named
analog.cfg like thus (For all the config commands, see the Analog Readme.):

HEADERFILE /home/sites/site17/logreports/analog/header
HOSTNAME mysite.com
OUTFILE /home/sites/site17/web/logreports/analog/report.html
LOGFILE /home/sites/site17/logs/web.log
IMAGEDIR img/
OUTPUT HTML
LANGFILE /usr/lib/analog/lang/us.lng
DNSFILE /var/log/analog.dns
DNSGOODHOURS 48
DNS WRITE
LINKINCLUDE pages
UNCOMPRESS *.gz,*.Z "gzip -cd"
SUBTYPE *.gz,*.Z
TYPEOUTPUTALIAS .html    ".html [Hypertext Markup Language]"
TYPEOUTPUTALIAS .htm     ".htm  [Hypertext Markup Language]"
TYPEOUTPUTALIAS .ps      ".ps   [PostScript]"
TYPEOUTPUTALIAS .gz      ".gz   [Gzip compressed files]"
TYPEOUTPUTALIAS .html.gz ".html.gz [Gzipped HTML]"
TYPEOUTPUTALIAS .ps.gz   ".ps.gz [Gzipped PostScript]"
TYPEOUTPUTALIAS .xbm     ".xbm  [X11 bitmaps]"
TYPEOUTPUTALIAS .tar.gz  ".tar.gz [Compressed archives]"
TYPEOUTPUTALIAS .jpg     ".jpg  [JPEG graphics]"
TYPEOUTPUTALIAS .gif     ".gif  [GIF graphics]"
TYPEOUTPUTALIAS .txt     ".txt  [Plain text]"
TYPEOUTPUTALIAS .class   ".class [Java class files]"
TYPEOUTPUTALIAS .pdf     ".pdf  [Adobe Portable Document Format]"
TYPEOUTPUTALIAS .zip     ".zip  [Zip archives]"
TYPEOUTPUTALIAS .hqx     ".hqx  [Macintosh archives]"
TYPEOUTPUTALIAS .exe     ".exe  [PC executables]"
REPORTORDER xrofBdh5cmDH4WiSEItzsKkuJvb
DOMSORTBY REQUESTS
DOMFLOOR 1r
REQCOLS Rr
REFCOLS Rr
DOMCOLS Rr
FULLBROWCOLS Rr
FIVEROWS 0
FULLBROWSER ON
GENERAL ON
REQUEST ON
REFERRER ON
DOMAIN ON
DAILY ON
HOURLY ON
QUARTER ON

c) Make a custom header named "header" and put it in the same directory.

d) Make a subdirectory named "img" and throw your images there


2) And you also ask:

> And here's a big "whatthahell"
> question... if this is already on the server, WHY are we all forced to
> use Webalizer or some other statistics program to read our logs?!?

Of course, nobody is forcing you. You just nose around until you find it's
there, investigate how to use it, and decide if you want to. But the fact is
that Analog ain't a whole lot to brag about. In particular, if you have a
site with tons of pages, you will get one big analog report page on all of
them. And by big I mean it may be 2 or 3 megs in size! That's a fair amount
of html to download and render.

Me, I throw Analog in free for those little sites where the client is
content just to have something. It is good for a "lick and a promise". But
for serious need, I install a deal I made myself, which gives everything
from the frequency of the various search terms visitors used on down, and
which prints the different reports on separate pages the way they should be,
so that you can zero in.

Programming a good log analysis tool requires a month or two of fascinating
fun. If you like to program, give it a whack.

Aloha
Davis