Mercurial > repos > other > Puppet
annotate common/logwatch/logfiles_http.conf @ 465:f6304a8e2adc
Try to fix last day of month HTTP LogWatch
LogWatch runs for yesterday's data. And we rotate and zip web
logs on the 1st of the month. So on the 1st, when generating the
summary for the last day of the month, we need to look at a
gzipped file, not the current or old-unzipped file.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Feb 2024 09:56:16 +0000 |
parents | |
children | 202aeef575a1 |
rev | line source |
---|---|
465
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 ######################################################## |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 # Define log file group for httpd |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 ######################################################## |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
5 # What actual file? Defaults to LogPath if not absolute path.... |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 LogFile = httpd/*access_log |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
7 LogFile = apache/*access.log.1.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 LogFile = apache/*access.log.1 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 LogFile = apache/*access.log |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 LogFile = apache2/*access.log.1 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 LogFile = apache2/*access.log |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 LogFile = apache2/*access_log |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 LogFile = apache-ssl/*access.log.1 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 LogFile = apache-ssl/*access.log |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
15 LogFile = nginx/*access.log |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
16 LogFile = nginx/*access.log.1 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
17 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
18 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
19 # If the archives are searched, here is one or more line |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 # (optionally containing wildcards) that tell where they are... |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
21 #If you use a "-" in naming add that as well -mgt |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
22 Archive = archiv/httpd/*access_log.* |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
23 Archive = httpd/*access_log.* |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
24 Archive = apache/*access.log.*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
25 Archive = apache2/*access.log.*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 Archive = apache2/*access_log.*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
27 Archive = apache-ssl/*access.log.*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
28 Archive = archiv/httpd/*access_log-* |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
29 Archive = httpd/*access_log-* |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
30 Archive = apache/*access.log-*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
31 Archive = apache2/*access.log-*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
32 Archive = apache2/*access_log-*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
33 Archive = apache-ssl/*access.log-*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
34 Archive = nginx/*access.log.*.gz |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
35 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
36 # Expand the repeats (actually just removes them now) |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
37 *ExpandRepeats |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
38 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
39 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
40 # Keep only the lines in the proper date range... |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
41 *ApplyhttpDate |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
42 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
43 # vi: shiftwidth=3 tabstop=3 et |