• 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!
  • 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.

sw-engine.log file massive and not rotating

websavers

Regular Pleskian
Hey everyone,

We've got a number of servers with Plesk panel, making use of php-fpm and nginx processing. All (or very close to all) of them are running 11.5.30 Update #48.

Just before migrating a few of these servers, I've discovered that the file /var/log/sw-cp-server/sw-engine.log is typically massive (20-50GB) causing IO performance issues and, of course, creating longer than necessary migrations.

We've taken to simply nulling the log file with cat /dev/null > /var/log/sw-cp-server/sw-engine.log, however I don't want to be constantly having to do this on a regular basis. Shouldn't this file be automatically rotating?

Is this a bug in Plesk that the devs forgot to add this file to logrotate?
 
Log rotation parameters for Plesk services are defined in the /usr/local/psa/etc/logrotate.conf configuration file. As you can see file /var/log/sw-cp-server/sw-engine.log is not specified there. Only /var/log/sw-cp-server/error_log. You can try to add rotation for /var/log/sw-cp-server/sw-engine.log there and run daily maintenance script with

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

for checking results.
 
Igor,

That fixed it! I added it to the logrotate.conf file for Plesk and now it's rotating properly. Shouldn't this be there already though? After all, that's a Plesk log file (isn't it?)
 
Back
Top