• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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