[Freeswitch-users] can i make all log from console have date stamp

Steven Ayre steveayre at gmail.com
Wed Apr 2 17:10:30 MSD 2014


It'd be better to modify the stack to expose the functionality you need and
then handle that in mod_sofia

On Wednesday, April 2, 2014, Steven Ayre <steveayre at gmail.com> wrote:

> You can't. It's the underlying sip stack. It doesn't link against
> libfreeswitch so that function is not available
>
>
> On Wednesday, April 2, 2014, dwi yulianto <dwiyulianto.anto at gmail.com<javascript:_e(%7B%7D,'cvml','dwiyulianto.anto at gmail.com');>>
> wrote:
>
>> i try  ssh dos and that give log in tport. but log about tport tls didnt
>> have any data/time stamp.
>>
>> maybe if i can make that log into date/time stamp i can make regex for
>> fail2ban to find log when attacker give new connection in tls eventually.
>>
>> am i need to change in tport_type_tls.c in line about SU_DEBUG_5 that
>> have part with "new connection from "   and change that with
>> switch_log_printf. but actually i dont really understand about C. so how i
>> can change that with switch_log_printf?
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>> On Wed, Apr 2, 2014 at 3:35 PM, Steven Ayre <steveayre at gmail.com> wrote:
>>
>>> Sofia stack logging is extremely verbose, far more so than you want to
>>> run in production. Doing so will likely hurt the performance of your system
>>> due to too much disk I/o
>>>
>>> What're you looking to capture?
>>>
>>> FS already has log messages for auth failures for fail2ban to match
>>>
>>>
>>>
>>>
>>> On Tuesday, April 1, 2014, dwi yulianto <dwiyulianto.anto at gmail.com>
>>> wrote:
>>>
>>>> i wanna make log from tport.c in console or in log file with date
>>>> stamp, so i can use it for fail2ban.
>>>>
>>>> thanks.
>>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140402/a62cb143/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list