At first create web.log.txt file. Then cat to this file
all log files (syntax of apache's access.log) which you want to include in generated statistics:
Next:
sudo apt-get install awstats
/usr/lib/cgi-bin/awstats.pl -update -config="progmar.net.pl" -LogFile="./web.log.txt"
/usr/lib/cgi-bin/awstats.pl -config="progmar.net.pl" -output -staticlinks >./stats.html
Copy all log files to a local directory. Their names are of following syntax
web.log.RRRRMMDD.txt, where RRRR stands for year, MM - for month, DD - for day.
They are all (excluding today file) compressed with gzip command.
Now we rename this files to add to them gz extension. Thanks it the gunzip
command will successfully uncompress them:
find . -name "web.log.*" -exec mv {} {}.gz \;
Uncompress the above files:
find . -name "web.log.*.gz" -exec gunzip {} \;
The last thing we have to do is to concatenate extracted log files to one summary web.log.txt
file:
find . -name "web.log.*.txt" -exec cat {} >>web.log.txt \;