annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
1 ########################################################
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
2 # Logfile definition for PHP which points to Apache logs
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3 ########################################################
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 # What actual file? Defaults to LogPath if not absolute path....
127
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
6 LogFile = apache/error_*.log
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
7 LogFile = apache/error_*.log.1
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 # If the archives are searched, here is one or more line
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 # (optionally containing wildcards) that tell where they are...
127
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
12 Archive = apache/error_*.log.*.gz
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
13
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
14 # Expand the repeats (actually just removes them now)
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
15 *ExpandRepeats
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
16
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17
127
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
18 # Keep only the lines in the proper date range...
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
19 #*ApplyHttpErrorDate
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
20 *ApplyStdDate = "\[%a %b %d %H:%M:%S.\d{6} %Y\]"
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
21
bafd91f195de Fix PHP reporting in logwatch
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
22 # vi: shiftwidth=3 tabstop=3 et