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:
- Connect to a Plesk server via SSH.
- Create a new file under /etc/logrotate.d and enter the required settings into it.
- 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.
Comments
0 comments
Please sign in to leave a comment.