Plesk for Windows
Plesk for Linux
DoNotDelete:docref
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
A GDPR-related regulation prohibits storing clients' IP addresses on the server after a certain period of time. How to set up forced log rotation for all domains?
Answer
Plesk UI
- Login into Plesk;
- Go to Tools & Settings > Server Settings;
- Enable option Force daily log rotation for all domains and specify how long logs will be kept:
CLI
-
Connect to the server via SSH or Connect to the server via RDP
-
Use
logrotate_force
to enable it andlogrotate_period
for the number of days:# plesk bin settings -s logrotate_force=true
# plesk bin settings -s logrotate_period=8C:\> plesk bin settings -s logrotate_force=true
C:\> plesk bin settings -s logrotate_period=8
Comments
7 comments
Hi @Ehud Ziegelman:
Hi Ehud,
The first command changes "Force daily log.." and the second command changes "Allow to store website log files .."
Hi Julian Bonpland Mignaquy,
So, isn't the Plesk GUI stating "Force daily logrotation" Different than the "8" value in the GUI or in the CLI.
To the best of my understanding, In English, "daily", mean each day, and not on any other certain basis.
Or.. is it by "number of days" you mean the copies to be saved and not removed after a daily log rotation?
I'm finding that, as has been the case dating well back into Plesk 17, even with this new setting configured we end up with endless access_ssl_log.processed files never being properly rotated.
Hi Julian Bonpland Mignaquy,
May I ask what does the below stand for:
Is there a CLI or database equivalent to set this so we can bulk configure?
Hi @David Hubbard the commands are:
Please sign in to leave a comment.