Skip to content

Commit 8cef56e

Browse files
committed
Radicale example
1 parent 333a731 commit 8cef56e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: gerberos.toml

+8-6
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,24 @@ saveFilePath = "./gerberos.save"
3636
regexp = ['Invalid user.*\s%ip%']
3737
action = ["ban", "24h"]
3838

39-
# For development only
40-
[rules.aggregate-dev]
41-
source = ["file", "/tmp/aggregate.log"]
39+
# Example aggregate rule for radicale.
40+
# Needs logging -> level = info
41+
[rules.radicale]
42+
source = ["systemd", "radicale"]
4243
# If the aggregate option is used, "%id% must
4344
# appear exactly once in each main regexp in
4445
# addition to "%ip%". "%ip%" will be replaced
4546
# with the following subexpression named "ip":
4647
# (?P<id>(.*))
4748
# Please note that this subexpression matches
4849
# greedily.
49-
regexp = ['%id%\s%ip%']
50-
action = ["log", "extended"]
50+
regexp = ["\\] \\[%id%\\] \\[INFO\\] .*? received from '%ip%'"]
51+
action = ["log", "simple"]
5152
# Optional. In this case, the given action will
5253
# only be performed if one of the two aggregate
5354
# regexps is matched within 10 seconds after one
5455
# of the main regexps has been matched with the
5556
# same ID. "id" must appear exactly once in each
5657
# aggregate regexp.
57-
aggregate = ["10s", '%id% failed', 'bonfed %id%']
58+
aggregate = ["2m", "\\] \\[%id%\\] \\[INFO\\] Failed login attempt"]
59+
occurrences = ["3", "5m"]

0 commit comments

Comments
 (0)