Mercurial > repos > other > Puppet
annotate common/logwatch/logfiles_http.conf @ 470:f68d7f7c080b
Avoid new "429 rate limited" in LogWatch
This was meant to discourage spiders by being an error status
instead of a success status, but may not be working
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 12 May 2024 19:50:56 +0100 |
parents | 202aeef575a1 |
children |
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.... |
466
202aeef575a1
Correct HTTP log paths in LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
465
diff
changeset
|
6 LogFile = apache/access_*.log |
465
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
7 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 # 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
|
10 # (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
|
11 #If you use a "-" in naming add that as well -mgt |
466
202aeef575a1
Correct HTTP log paths in LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
465
diff
changeset
|
12 Archive = apache/access_*.log.*.gz |
465
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 # 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
|
15 *ExpandRepeats |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
16 |
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 # 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
|
19 *ApplyhttpDate |
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 |
470
f68d7f7c080b
Avoid new "429 rate limited" in LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
466
diff
changeset
|
21 # Ignore blocked requests |
f68d7f7c080b
Avoid new "429 rate limited" in LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
466
diff
changeset
|
22 *Remove = "\" 429 " |
f68d7f7c080b
Avoid new "429 rate limited" in LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
466
diff
changeset
|
23 |
465
f6304a8e2adc
Try to fix last day of month HTTP LogWatch
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
24 # vi: shiftwidth=3 tabstop=3 et |