Preventing error_log flooding

Tiffany Walker asked:

Is there a way to have httpd/php stop logging errors if they are repeating over and over again to prevent flooding?

Currently the /usr/local/apache/logs/error_log file is getting flooded and would like to prevent that.

My answer:


Split your error logs per VirtualHost and make the clients deal with their own web site errors.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.