Thank you.
It is what I wanted
Le 03/07/2017 à 16:03, pjc...@fastmail.fm a écrit :
Yes, you use the "fial2ban-regex" utility which (if I recall correctly)
is installed with your initial fail2ban installation. You invoke it
with syntax that looks like this:
fail2ban-regex <targetLog> <fail2ban-filter-file>
WHERE:
<targetLog:> is the log file that contains the actual logs that fail2ban
operates on.
<fai2ban-filter-file>: is the file typically located under
/etc/fail2ban/filter.d/ directory containing the regular expression that
you're testing.
And there's more info on it on this page:
https://www.fail2ban.org/wiki/index.php/MANUAL_0_8
On Mon, Jul 3, 2017, at 12:13 PM, Florian wrote:
I am created my own custom actions and I wanted to know if there is a
way to know which lines had matched?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users