AWStats: Combining logs
December 23rd, 2006
I gzip my rotated weblogs, so only the most recent log is uncompressed. I don’t want AWStats to only scan the most recent log though because then it will probably miss some data that was added to the rotated log after AWStats last scanned it. Therefor I combine the output from an uncompressed source with a compressed source and pipe it to AWStats so that it can scan both logs each time (hence guaranteeing that it doesn’t miss anything).
There’s no example of how to do that in the configuration file so I thought I might add it here. Entering the following as value for “LogFile” will do it.
(cat /pathtologs/log1 ; gzip -d < /pathtologs/log2.gz) |
Sorry, comments are closed for this article.