changeset 368:d3b10f2a5f60

Update logwatch for PHP-FPM logging
author IBBoard <dev@ibboard.co.uk>
date Tue, 02 Feb 2021 20:52:38 +0000
parents bcb54d9853e1
children 85a5a231b0b5
files common/logwatch/logfiles_php.conf common/logwatch/services_php.conf
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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