Applicable to:
- Plesk for Linux
Question
Is it possible to change rotation settings for /var/log/maillog
?
Answer
It is not possible to manage rotation settings for /var/log/maillog
. By design, /var/log/maillog
is rotated every day during Plesk Daily Maintenance task.
As an alternative, /var/log/maillog.proccessed
rotation settings may be changed instead. After Daily Maintenance Task is executed, all log data is moved from /var/log/maillog
to /var/log/maillog.proccessed
.
To modify /var/log/maillog.proccessed
rotation settings, perform the following steps:
-
Log in to the server via SSH.
-
Edit the settings in the
/usr/local/psa/etc/logrotate.conf
file:CONFIG_TEXT: /var/log/maillog.processed {
weekly
missingok
rotate 3
compress
nocreate
}
Note: Use one of the following words to set the rotation frequency: hourly
, daily
, weekly
, monthly
, yearly
.
Comments
1 comment
Hi Leonid Gukhman,
I have noticed lots of attacks on server take place on 06:29 AM, a minute before DAILY common log rotate takes place.
This way, an admin might not even see the attack scanning logs with its eyes.
The only record would be for example on Fail2Ban logs, and alert emails from such a time.
Please suggest a way to manually change the DAILY log-rotate time (hour) configuration, to be set manually on a server level.
May I also ask, where would LOG records of server being accessed on 06:29 AM disappear, as searching for the blocked by fail2ban IPs, brought NO results but the fail2ban log itself...
While on Fail2ban log:
Please sign in to leave a comment.