• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Change system logrotate

uniauto

Basic Pleskian
Hi.

I missundertood one option in Plesk and checked it (Server settings->Force daily log rotations for all domains).
I unchecked it and manually fixed all domains web logs, but i noticed some system logs changed to daily rotation (fail2ban, maillog, apache2, nginx,....).

Is there a way using Plesk to change it back to monthly? or the only way is editing all files in /etc/logrotate.d/ & /usr/local/psa/etc/logrotate.conf?
 
Hello,
There is no way to revert such changes unfortunately but you can set the rotation period to 30 days on Server Settings page.
 
Thank for answer.
I dont like daily rotation because it create a lot of files.
I want to keep some logs for 2years (740 files each log with daily rotation).
I fixed it manually.
 
Back
Top