comparison common/logwatch/logfiles_php.conf @ 127:bafd91f195de puppet-3.6

Fix PHP reporting in logwatch * Read correct files * Filter correct date format (as per Apache config) * Don't do "next unless" filtering in script * Handle Apache 2.4 date format
author IBBoard <dev@ibboard.co.uk>
date Sat, 17 Sep 2016 15:19:54 +0100
parents 956e484adc12
children d3b10f2a5f60
comparison
equal deleted inserted replaced
126:8316d4e55e92 127:bafd91f195de
1 ########################################################################## 1 ########################################################
2 # Logfile definition for PHP which points to a dedicated PHP log file 2 # Logfile definition for PHP which points to Apache logs
3 # or to the Apache error log 3 ########################################################
4 # File is to be placed in
5 # /etc/logwatch/conf/logfiles/php.conf
6 ##########################################################################
7 4
8 # What actual file? Defaults to LogPath if not absolute path.... 5 # What actual file? Defaults to LogPath if not absolute path....
9 LogFile = httpd/php_log 6 LogFile = apache/error_*.log
10 LogFile = httpd/error_log 7 LogFile = apache/error_*.log.1
11 8
12 # adjust your php.ini accordingly:
13 # error_log = /var/log/httpd/php_log
14 # log_errors = On
15 9
16 # If the archives are searched, here is one or more line 10 # If the archives are searched, here is one or more line
17 # (optionally containing wildcards) that tell where they are... 11 # (optionally containing wildcards) that tell where they are...
18 #If you use a "-" in naming add that as well -mgt 12 Archive = apache/error_*.log.*.gz
19 Archive = httpd/php_log.*
20 Archive = httpd/error_log.*
21 13
14 # Expand the repeats (actually just removes them now)
15 *ExpandRepeats
16
17
18 # Keep only the lines in the proper date range...
19 #*ApplyHttpErrorDate
20 *ApplyStdDate = "\[%a %b %d %H:%M:%S.\d{6} %Y\]"
21
22 # vi: shiftwidth=3 tabstop=3 et