Yes, it is possible to set this up, but it needs some work.
- You need to create separate log files for the subdomain by placing the following inside the subdomains vhost.conf:
CustomLog /var/www/vhosts/<domain>/statistics/logs/<subdomain>_access_log plesklog
ErrorLog /var/www/vhosts/<domain>/statistics/logs/<subdomain>_error_log
- Next create a directory for the statistics:
mkdir /var/www/vhosts/<domain>/subdomains/<subdomain>/webstat
- Add an alias to your subdomains vhost.conf file so you can call the statistics even though they are not in yout httpdocs directory:
Alias /webstat /var/www/vhosts/<domain>/subdomains/<subdomain>/webstat
The only thing missing now is logrotation for the new logs (maybe thats done by standard logrotation of that domain - you should check this) and the webalizer call which can be placed in a shell script in cron.daily:
#!/bin/sh
webalizer -p -q -c /var/www/vhosts/<domain>/conf/webalizer.conf -o /var/www/vhosts/<domain>/subdomains/<subdomain>/webstat