If you need a simple, non-scientific way of calculating the used bandwidth of your webserver in MB, use this command:
cat /var/log/apache2/access.log | awk ‘{ SUM += $5} END { print SUM/1024/1024 }’
Change the log file name to fit your vhost.
If you need a simple, non-scientific way of calculating the used bandwidth of your webserver in MB, use this command:
cat /var/log/apache2/access.log | awk ‘{ SUM += $5} END { print SUM/1024/1024 }’
Change the log file name to fit your vhost.