Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: mahesh on Sep 16, 2024, 08:31 AM

Title: How to increase log rotation period for IIS logs in Plesk on Windows server?
Post by: mahesh on Sep 16, 2024, 08:31 AM
Question
By default, Plesk removes/rotates log files every 24 hours.

How to increase the storage period for IIS logs in Plesk for Windows?

Answer
To increase retention of IIS logs, perform the following steps:

1.Connect to the server via RDP

2.Open Command Prompt as Administrator and execute the following command:

REG ADD "HKLM\SOFTWARE\Wow6432Node\PLESK\PSA Config\Config" /v log_pleskwebsite_history /t REG_DWORD /d 42 /f

In the command above, replace 42 with the value in days the logs should be kept.