Log SIP-Authentication Attempts/Failures to logfile /var/log/freeswitch/freeswitch.log

Status
Not open for further replies.

haglo

New Member
May 14, 2021
8
0
1
63
I need it for fail2ban
I user FreeSWITCH Version 1.10.6-release+git~20210325T131609Z~1ff9d0a60e~64bit
I have installed mod_logfile with the following configuration
XML:
<configuration name="logfile.conf" description="File Logging">
  <settings>
   <param name="rotate-on-hup" value="true"/>
  </settings>
  <profiles>
    <profile name="default">
      <settings>
        <param name="logfile" value="/var/log/freeswitch/freeswitch.log"/>
        <param name="rollover" value="1048576000"/>
        <param name="maximum-rotate" value="32"/>
        <param name="uuid" value="true" />
      </settings>
      <mappings>
        <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
      </mappings>
    </profile>
  </profiles>
</configuration>

I have set in my sip-profile
XML:
<param name="log-auth-failures" value="true"/>

When i enter fs_cli then i see all the messages i need,
but they are not written to /var/log/freeswitch/freeswitch.log
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Is anything being written to the logfile? I'm just thinking permissions.
 

haglo

New Member
May 14, 2021
8
0
1
63
Hello, correct now it works. It was a permission problem. A lot of thanks
 
Status
Not open for further replies.