Is there a way to search the error log for only unique errors. Reason being I have a lot of duplicate errors and don’t want to miss the rare ones.
How would I go about writing a custom script which parses the error log, and filters out all of the duplicates excluding the datetime.
Set
ignore-repeated-errors= Onin php.ini or addini_set('ignore-repeated-errors', 1);to your php scriptsThis will stop php from logging an error more than once i.e. error messages caused by same line in same script.