view 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
line wrap: on
line source

########################################################
# Logfile definition for PHP which points to Apache logs
########################################################

# What actual file?  Defaults to LogPath if not absolute path....
LogFile = apache/error_*.log
LogFile = apache/error_*.log.1


# If the archives are searched, here is one or more line
# (optionally containing wildcards) that tell where they are...
Archive = apache/error_*.log.*.gz

# Expand the repeats (actually just removes them now)
*ExpandRepeats


# Keep only the lines in the proper date range...
#*ApplyHttpErrorDate
*ApplyStdDate = "\[%a %b %d %H:%M:%S.\d{6} %Y\]"

# vi: shiftwidth=3 tabstop=3 et