How to Restrict Apache Error.log File Size Growth | Tips and Techniques

How to Restrict Apache Error.log File Size Growth

KB ID: 115006
Cause:
Frequent addition of "Warning" alerts in the log files leads to significant growth in the size of the Apache error.log file.
Solution:
To mitigate the issue of rapidly growing log files, follow the steps below to configure Apache to only add "critical" alerts to the error.log file:
1. Stop the BDRShield web service from services.msc.
2. Delete the existing error.log file located under the logs folder.
3. Navigate to the "Installation location\Vembu\VembuBDR\apache\conf" directory. For example, "C:\Program Files\Vembu\VembuBDR\apache\conf."
4. Open the httpd.conf file using a text editor like Notepad.
5. Locate the "Log-level" setting and change it from 'warn' to 'crit'.
6. Save the changes and close the file.
7. Start the BDRShield web service from services.msc.
By following these steps, the Apache error.log file will be restricted from growing larger due to "Warning" alerts and only "critical" alerts will be recorded in the log files. This optimization helps to maintain log files at a manageable size and enhances the overall performance of the BDRShield for VMware.