GoAccess combine all server logs in Ubuntu Server using apache

Generic Terminal Commands Across Multiple Linux Distributions
Post Reply
User avatar
Administrator
Site Admin
Posts: 1512
Joined: Thu Mar 22, 2018 10:19 am

GoAccess combine all server logs in Ubuntu Server using apache

Post by Administrator » Wed Mar 25, 2020 5:04 am

You can combine all the apache server logs with a single command. This will look for all matching logs in the log directory.

Code: Select all

zcat -f /var/log/apache2/davidclews.com* | goaccess -o /var/www/html/davidclews.com/logs/report.html --real-time-html --log-format=COMBINED
change davidclews.com with your own virtual host name, as defined in the apache config.

Post Reply