Apache, FTP, mail and other system services write information on their functioning to log files. These files are periodically analyzed by the statistics utility that parses logs and inserts the resource usage data into the psa database.
Two other utilities, Webalizer and AWstats, also parse the services logs and generate HTML files with the statistical data.
Details about where the log files reside and how the utilities process them are given in this chapter.
System Services Logs
System services logs contain traffic usage data and operational details that may be useful for troubleshooting. These data contain, for example, errors and access information.
The logs produced by Apache, FTP and mail services for each domain are stored in /var/www/vhosts/<domain_name>/statistics/logs/. sw-cp-server logs are stored in /var/log/sw-cp-server/ (error log) and $PRODUCT_ROOT_D/admin/logs/ (access log).
To save disk space, Panel rotates logs: it removes the information written before a specified date or the least relevant information when the log size reaches a limit. For more information on logs rotation, see the section Log Rotation.
Once a day, Panel runs the
statistics utility. This gets the statistical data from the services log files, calculates daily traffic usage values for each domain and customer, and writes these values to the
DomainsTraffic and the
ClientsTraffic tables of the psa database. You can also run the
statistics utility manually to calculate statistics for all domains or a particular domain. For details, see the section Calculating Statistics from Logs.
Webalizer and AWstats are third-party utilities that represent statistical information from log files in the HTML format. These utilities store the files for each domain in the subdirectories of /var/www/vhosts/<domain_name>/statistics. You can view HTML statistics in the Panel GUI or make Panel send them to your e-mail address. For instructions on how to set up automatic sending of resource usage reports, see the section Resource Usage Reports.
In addition, you can recalculate statistic for previous months using the AWstats utility. For instructions on how to do this see the section Recalculating Statistics for Previous Months.
Please send us your feedback on this help page.