You may want to check out www.josheli.com/vox/. Great scripts for both AWStats and Webalizer that will accomplish what you want.

Click to expand...

The php script looks good for awstats, but it requires that the cPanel username and password are hard-coded in the script. Putting the security issue to one side, hard coding this stuff means that if I update the password via cPanel/WHM then this script breaks. Presumably the same script could be modified to work such that the regular .htaccess-style username and password authentication is still required.