Hello, I'm using following action file on Debian 10 (buster).
---------------------------------------------------------------------- [Definition] actionstart = actionstop = actioncheck = actionban = logger -i -p <facility>.<level> -t fail2ban.actions "[<name>] Ban <ip>" actionunban = logger -i -p <facility>.<level> -t fail2ban.actions "[<name>] Unban <ip>" [Init] name = default facility = daemon level = notice ---------------------------------------------------------------------- My intention is to write ban/unban message to syslog. I'm almost satisfied with it but not with one point. "-i" option of logger(1) includes PID of logger process in each log message. But for me it is not so informative and if possible I would like to include PID of jail instead. According to man page logger(1) of Debian has "--id[=id]" option that make it possible to specify value of PID inclued in log message. So if I can pass jail PID to "--id" options my problem is solved. Then are there any way to do it? Best Regards. _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
