• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Logrotate for nginx proxy_access_ssl_log

bernhardh86

Basic Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.42
I have done all settings in Plesk to have a daily log rotation (and keep the files 7 days).

1665053258024.png


It works for the access_log and access_ssl_log (and I don't use apache at all, since I have disabled proxy mode), but i is not applied to the nginx proxy_access_ssl_log. There is always just one file of proxy_access_ssl_log.

Digging deeper, I found the file `/opt/psa/etc/logrotate.d/mydomain.at` with the settings in it:

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
/var/www/vhosts/system/mydomain.at/logs/*.processed {
daily
rotate 7
compress
missingok
copytruncate
}
/var/www/vhosts/system/mydomain.at/logs/error_log {
daily
rotate 7
compress
missingok
copytruncate
}
/var/www/vhosts/system/mydomain.at/logs/proxy_error_log {
daily
rotate 7
compress
missingok
copytruncate
}

Interesting! There is no setting for proxy_access_ssl_log. And I can't add it there, since it would be overwritten.
 
It's expected behavior. The contents of the logfiles proxy_access_log and proxy_access_ssl_log are merged with access_log for further statistics calculations.
In the meantime, the logs themselves start over so that the web server continues to write logs while statistics for the past day are calculated.

Plesk Support will soon release a support page where this behavior is explained.
 
Back
Top