[Freeswitch-users] log format change breaking fail2ban? percentage added to logs? how to revert?

Jelle de Jong jelledejong at powercraft.nl
Thu Oct 28 10:42:02 UTC 2021


Hello everybody,

The log format seem to have changed, how can I get it back to what it 
used to without the percentage thing? A search on Google failed me to 
provide an answer...

# fs_cli -x version
FreeSWITCH Version 1.10.7-release-19-883d2cb662~64bit 
(-release-19-883d2cb662 64bit)

# grep pref_line  /etc/fail2ban/filter.d/freeswitch.conf
_pref_line = ^%(__prefix_line)s(?:\d+-\d+-\d+ \d+:\d+:\d+\.\d+)?
failregex = %(_pref_line)s \[WARNING\] sofia_reg\.c:\d+ SIP auth 
(failure|challenge) \((REGISTER|INVITE)\) on sofia profile \'[^']+\' for 
\[[^\]]*\] from ip <HOST>$
             %(_pref_line)s \[WARNING\] sofia_reg\.c:\d+ Can't find user 
\[[^@]+@[^\]]+\] from <HOST>$

2021-10-28 12:28:55.736515 99.20% [WARNING] sofia_reg.c:1806 SIP auth 
failure (REGISTER) on sofia profile 'internal' for [30640 at 82.94.245.xxx] 
from ip 217.138.220.158

2021-05-20 16:44:54.159814 [WARNING] sofia_reg.c:1740 SIP auth failure 
(REGISTER) on sofia profile 'internal' for [123456 at 82.94.245.xxx] from 
ip 193.107.216.182

# fgrep percentage /etc/freeswitch/ -R

What is the use case of this new percentage in the log files?

Kind regards,

Jelle de Jong



More information about the FreeSWITCH-users mailing list