# HG changeset patch # User IBBoard # Date 1612299158 0 # Node ID d3b10f2a5f608a9b303e909d039c5803b5303f59 # Parent bcb54d9853e1eea72d2157f4750e4783927863b5 Update logwatch for PHP-FPM logging diff -r bcb54d9853e1 -r d3b10f2a5f60 common/logwatch/logfiles_php.conf --- a/common/logwatch/logfiles_php.conf Sun Dec 20 13:51:58 2020 +0000 +++ b/common/logwatch/logfiles_php.conf Tue Feb 02 20:52:38 2021 +0000 @@ -5,6 +5,8 @@ # What actual file? Defaults to LogPath if not absolute path.... LogFile = apache/error_*.log LogFile = apache/error_*.log.1 +LogFile = php-fpm/error.log* +LogFile = php-fpm/*-error.log* # If the archives are searched, here is one or more line @@ -16,7 +18,7 @@ # Keep only the lines in the proper date range... -#*ApplyHttpErrorDate -*ApplyStdDate = "\[%a %b %d %H:%M:%S.\d{6} %Y\]" +# Set a specific date format, but ignore the timezone because ApplyStdDate doesn't like %Z +*ApplyStdDate = "\[%d-%b-%Y %H:%M:%S ...\]" # vi: shiftwidth=3 tabstop=3 et diff -r bcb54d9853e1 -r d3b10f2a5f60 common/logwatch/services_php.conf --- a/common/logwatch/services_php.conf Sun Dec 20 13:51:58 2020 +0000 +++ b/common/logwatch/services_php.conf Tue Feb 02 20:52:38 2021 +0000 @@ -8,7 +8,7 @@ Title = php-messages # Which logfile group... -LogFile = http-error +LogFile = php # Detail = High