@@ -36,22 +36,24 @@ saveFilePath = "./gerberos.save"
36
36
regexp = [' Invalid user.*\s%ip%' ]
37
37
action = [" ban" , " 24h" ]
38
38
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" ]
42
43
# If the aggregate option is used, "%id% must
43
44
# appear exactly once in each main regexp in
44
45
# addition to "%ip%". "%ip%" will be replaced
45
46
# with the following subexpression named "ip":
46
47
# (?P<id>(.*))
47
48
# Please note that this subexpression matches
48
49
# greedily.
49
- regexp = [' %id%\s %ip%' ]
50
- action = [" log" , " extended " ]
50
+ regexp = [" \\ ] \\ [ %id%\\ ] \\ [INFO \\ ] .*? received from ' %ip%'" ]
51
+ action = [" log" , " simple " ]
51
52
# Optional. In this case, the given action will
52
53
# only be performed if one of the two aggregate
53
54
# regexps is matched within 10 seconds after one
54
55
# of the main regexps has been matched with the
55
56
# same ID. "id" must appear exactly once in each
56
57
# aggregate regexp.
57
- aggregate = [" 10s" , ' %id% failed' , ' bonfed %id%' ]
58
+ aggregate = [" 2m" , " \\ ] \\ [%id%\\ ] \\ [INFO\\ ] Failed login attempt" ]
59
+ occurrences = [" 3" , " 5m" ]
0 commit comments