Mercurial > repos > other > Puppet
diff common/logwatch/logfiles_http.conf @ 466:202aeef575a1
Correct HTTP log paths in LogWatch
It wasn't generating logs because we're not using the normal
pattern - our site name comes _after_ the "access" part, not
before
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Feb 2024 10:10:32 +0000 |
parents | f6304a8e2adc |
children | f68d7f7c080b |
line wrap: on
line diff
--- a/common/logwatch/logfiles_http.conf Sun Feb 25 09:56:16 2024 +0000 +++ b/common/logwatch/logfiles_http.conf Sun Feb 25 10:10:32 2024 +0000 @@ -3,35 +3,13 @@ ######################################################## # What actual file? Defaults to LogPath if not absolute path.... -LogFile = httpd/*access_log -LogFile = apache/*access.log.1.gz -LogFile = apache/*access.log.1 -LogFile = apache/*access.log -LogFile = apache2/*access.log.1 -LogFile = apache2/*access.log -LogFile = apache2/*access_log -LogFile = apache-ssl/*access.log.1 -LogFile = apache-ssl/*access.log -LogFile = nginx/*access.log -LogFile = nginx/*access.log.1 +LogFile = apache/access_*.log # If the archives are searched, here is one or more line # (optionally containing wildcards) that tell where they are... #If you use a "-" in naming add that as well -mgt -Archive = archiv/httpd/*access_log.* -Archive = httpd/*access_log.* -Archive = apache/*access.log.*.gz -Archive = apache2/*access.log.*.gz -Archive = apache2/*access_log.*.gz -Archive = apache-ssl/*access.log.*.gz -Archive = archiv/httpd/*access_log-* -Archive = httpd/*access_log-* -Archive = apache/*access.log-*.gz -Archive = apache2/*access.log-*.gz -Archive = apache2/*access_log-*.gz -Archive = apache-ssl/*access.log-*.gz -Archive = nginx/*access.log.*.gz +Archive = apache/access_*.log.*.gz # Expand the repeats (actually just removes them now) *ExpandRepeats