Updated Developing Regex in Fail2ban (markdown)

master
Egbert 2020-09-30 16:29:55 -04:00
parent 150e8794da
commit f789ca56d6
1 changed files with 2 additions and 0 deletions

@ -73,6 +73,8 @@ Secondary benefit of `prefregex` is to ensure that `failregex` is left with the
3-Jan-2020 myscript: Dynamic error message part
```
Furthermore, the really good reason to support `prefregex`, single pattern or not, is to accommodate whichever daemon/script is writing into that log file as each user of your filter may have different configuration settings to include or exclude certain things into that log file. If the daemon/script of that log file doesn't have any logging parameters that would affect the log, then `prefregex` may not be for you to use.
To Pre-Filter or Not To Pre-Filter
-----------------------------------
This section only applies if you have (or will have) multiple patterns within this same filter file that you are creating or modifying.