• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Frequency of Log File Rotation

Quotes

New Pleskian
How do I check/change the scheduled task relating to processing the log file rotation?

I already know how to update the log file rotation settings for each subscription (e.g. by size, daily, weekly, how many to retain, etc). What I don’t know is how to run the maintenance script that carries out the actual log file processing, and see if I can increase the frequency the log files are processed.
 
Thank you IgorG, that is almost what I wanted, although that solution is for a specific domain, and I want something to run server-wide.

I am trying to deal with sudden bursts in log file size due to brute force attacks. I am also considering move log files to a separate disk although if that fills up I don’t know if Apache would continue to run if it can’t create a log file properly.
 
I found this article which runs a different script to rotate logs for the whole server - How to force Plesk to rotate logs more often on Linux

However, I think that what is needed is an auto-rotate feature when logs reach an exceptional size. The settings currently allow for rotation over a filesize of choice but that is rather useless during a brute force attack (in my case 14GB error log generated in 30 minutes). The process needs to be more nimble. I will put this forward as a suggestion.
 
Back
Top