Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How domain's logfiles, that are located on /var/www/vhosts/system/example.com/logs
, are rotated?
Answer
Once log rotation is completed:
-
All entries from domain's
access_log
(Apache) andproxy_access_log
(nginx) logfiles will be saved to theaccess_log.processed
file. -
All entries from domain's
access_ssl_log
(Apache SSL) andproxy_access_ssl_log
(nginx SSL) files will be saved to theaccess_ssl_log.processed
file.
This process is done by the statistics utility. While calculating domain statistics, these files are merged in order not to lose any information.
Comments
2 comments
Having updated to Plesk Onyx 17.8.11 (Update 8 at the time of writing) this no longer seems to be the case. Comparing access_ssl_log.processed and access_ssl_log.webstat, the former is missing a lot of information which I believe would have been held in proxy_access_ssl but as that isn't rotated it's difficult to tell exactly.
@Steve Jeffery
Here is how the logs files are processed during the statistics aspects of Plesk daily maintenance task:
On the example of proxy_access_ssl_log, during the daily task, the records from it are put into access_ssl_log.processed and then proxy_access_ssl_log is truncated, so all new records from it will be added to the access_ssl_log.processed file during the next run of the daily task.
Please sign in to leave a comment.