[TriLUG] AWstats question
William Sutton via TriLUG
trilug at trilug.org
Wed Jul 3 21:59:16 EDT 2019
I inherited an old awstats installation at a previous job. As I recall,
it was generating awstats a month at a time, so I expect that's probably
what you have to do here.
The following might get you started. change the echo part to the
appropriate awstats command, and change the year range as needed:
for y in $(seq 2016 2019); do for m in $(seq -f "%02g" 1 12); do echo "$y/$m"; done; done;
William Sutton
On Wed, 3 Jul 2019, Brian McCullough via TriLUG wrote:
> 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
>
>
> --
> This message was sent to: William <william at trilug.org>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web : https://www.trilug.org/mailman/options/trilug/william%40trilug.org
> Welcome to TriLUG: https://trilug.org/welcome
More information about the TriLUG
mailing list