[TriLUG] AWstats question

Brian McCullough via TriLUG trilug at trilug.org
Wed Jul 3 20:32:58 EDT 2019


I guess that it has been too long since I tried to do something strange
with AWstats.

For those of you that don't like history, jump to TriLUG:


The web server that I have just inherited has about three years of daily
Apache logs, and no statistical tools. ( no awstats )

I downloaded all of the files into my machine, installed awstats,
disabled the cron job, and, with help from the documentation, processed
all of the log files into the appropriate files in /var/lib/awstats.

Normally, I would do this with "cat" to combine all of the log files,
and then tell awstats to have at it.  Since everything seemed to stall,
I found the "logresolvemerge" tool, provided with awstats, and things
still stalled, until I took a suggestion and turned on debugging.  It
was taking about 15 minutes to process one month!  Oh, well.


TriLUG:

However, now we run into my problem.

I want to generate the appropriate web pages of statistics.  I ran
awstats_buildstaticpages.pl.  I had the bright idea, from the help
screen, of using "-month=all -year=2018," but this doesn't produce quite
what I am used to in a running machine.

What I have there is a pair of HTML select boxes, one for Month, and one
for Year, which are not on the results that I got from my command.

Hmmm.  OK, buildstatic.sh, from the cron job,  writes HTML files into
/var/cache/awstats/Year/Month.  I read in the documentation that
awstats.pl uses that data.  I suspect that that is also responsible for
the select boxes.


Do I need to write a script that calls awstats_buildstaticpages.pl, once
for each month-year combination, saving the output to an individual
directory, and then hand-write an HTML page to navigate to all of these?


Thanks,
Brian




More information about the TriLUG mailing list