Articles in this section

How to set up log rotation for a custom log on a Plesk server?

kb: how-to Plesk for Linux logrotate

Question

How to set up log rotation for a custom log on a Plesk server for example /var/log/auth.log?

Answer

Such a feature is yet to be implemented in Plesk and currently under our developers review
Custom logs be included under Log Rotation. 
As an alternate option, custom logs can be manually rotated using the following steps:

  1. Connect to a Plesk server via SSH.
  2. Create a new file under /etc/logrotate.d and enter the required settings into it.
  3. Save the file. Restart the rsyslog service by executing the following command:

    # systemctl restart rsyslog

    It would be loaded automatically next time logrotate is invoked.

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.