I get this kind of problem every day: “We’ve run out of disc space on our Plesk server – what’s taking up all the space?” The answer, almost every time, is “logs.” Plesk doesn’t enable log rotation by default, so logs can end up taking a lot of space.
Here’s something I cooked up to list the size of each domain’s log directory:
# for logdir in $(find /var/www/vhosts -type d | grep statistics | sed s/\\.\\/// | sort | grep logs); do echo $logdir; done | tr “\n” ” ” | xargs du -clh
This will spit out something like:
704K /var/www/vhosts/foo.net/statistics/logs
3.7M /var/www/vhosts/bar.net/statistics/logs
16K /var/www/vhosts/example.com/statistics/logs
52K /var/www/vhosts/joe.blogg.net/statistics/logs
928M /var/www/vhosts/johndoe.com/statistics/logs
4.7M /var/www/vhosts/randomstuff.org/statistics/logs
142M /var/www/vhosts/sub.example.com/statistics/logs
1.1G total
If this doesn’t reveal anything noteworthy, you can drop the “| grep logs” to give you all directories under /var/www/vhosts/*/statistics.

