I recently removed google analytics and found out about goaccess which just works with log files. So here are a few usefull commands for running goaccess on the command line with apache logs for future me and anybody else. First change to the dir of the log file.
cd /var/log/apache2
This line uses all access.log files, also those of previous days:
zcat access.log.*.gz | goaccess access.log --log-format=COMMON
This line uses all other_vhosts_access.log files, also those previous days:
zcat other_vhosts_access.log.*.gz | goaccess other_vhosts_access.log --log-format=VCOMMON
It should look something like this:

Leave a Reply

Your email address will not be published. Required fields are marked *