The biggest recommendation I can offer with any syslog-style engine is to use the asynchronous modifier:

local0.*                                        -/var/log/kamailio.log



On 09/14/2012 10:18 AM, Albert Petit wrote:

Hi,

For load testing I would like to setup rsyslog so Kamailio logs are
written asynchronously

Would the following configuration be enough for that purpose in
*rsyslog.conf*?


#
# Write log file in asynchronous mode and use an IO Buffer of 64 Kb
# IO buffer config http://www.rsyslog.com/doc/rsyslog_conf_global.html
# #
$OMFileAsyncWriting on
$OMFileFlushOnTXEnd off
$OMFileFlushInterval 60
$OMFileIOBufferSize 128k


#----------------------------------------------------------------------
## kamailio
##----------------------------------------------------------------------
$outchannel
kamailio_log_rotation,/var/log/pocserverplatform/kamailio.log,524288000,/usr/local/bin/kamailio_log_rotation_script
:programname, contains, "kamailio"      $kamailio_log_rotation
local0.*                                $kamailio_log_rotation



Apart of that is there a way to completely disable completely any logs
of Kamailio to discard they're causing any performance issue?

Thanks
Albert


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to