I have Apache access_log file, is it possible to generate Webalizer statistics for this log manually?
SYMPTOMS
I have Apache access_log file and want to calculate Webalizer statistics for this log.
RESOLUTION
To generate Webalizer statistics ‘webalizer’ should be run with this domain parameters as on example below:
# cd $VHOST_CONF_D/domain.tld/statistics/
# mkdir webstat_new
# webalizer -F clf -p -c ../conf/webalizer.conf -n domain.tld -o ./webstat_new -D /usr/local/psa/var/lib/webalizer/webalizer.cache -N 50 ./logs/access_log
In result of the commands above, statistics for domain ‘domain.tld’ will be generated in ‘./webstat_new’ folder accordingly to information in the “./logs/access_log”.
If you have several logs, for example:
access_log.processed.1
access_log.processed.2
access_log.processed.3
run the ‘webalizer’ command for every log file in the reverse order (begining from the oldest one): access_log.processed.3, access_log.processed.2, access_log.processed.1.
Tags: plesk Webalizer