Disable Apache & Nginx access logs (and error maybe) through Plesk panel.
Access logs are not useful in most cases and we should have a feature to disable them through Panel not go and edit vhosts.
Thank you for your input! We will consider this functionality in upcoming releases, if it will be popular.
Everyone, please continue voting for this feature if you consider it important.
—ET
-
SilvioK commented
Tim Reeves suggestion is nice for Admins.
But resellers and customers should also have access to such a feature.
Not only performance: many hosters allow disabling logging for privacy reasons! -
Tim Reeves commented
Regarding Nginx: There is a better idea than just disabling the access logs, because the nasty things that happen (and get recorded there) can be used for Fail2Ban Jails.
I suggested Nginx Jails for Fail2Ban about 18 months ago:
And now, as you see in my comment there, I have written them myself. In fact 6 jails, 3 for access logs and 3 for error logs.
And I have also written an article (in German) how to limit the entries in access logs to only 4xx and 5xx errors, and to buffer the output as well. Because if you don't do that, then the continuous writing to the weberver logs, which are constantly being regex filtered by fail2ban, produces such a heavy load on IO that your server is dead in the water.
https://timreeves.de/internet-technologie/nginx-konfiguration-optimieren-und-geld-sparen/
I won't repeat here what I wrote there - if you need to, then use DeepL or Google Translator on the page.
Would be really glad to see an option for selective and buffered logging with Nginx appear in Plesk - maybe it could also work for Apache?
Tim