Goaccess apache configuration
Jump to navigation
Jump to search
To use the great goaccess tool we have to configure apache to also create one common access log file for all virtual hosts together:
Define a new log format in /etc/apache2/conf-enabled/goaccess.conf
LogFormat "%v: %h %t \"%r\" %>s %b" vhost
Use that format in every vhost:
CustomLog ${APACHE_LOG_DIR}/vhost.log vhost
Now you get that additional vhost.log in /var/log/apache2 folder. Start the too with:
goaccess /var/log/apache2/vhost.log --log-format VCOMMON