[SR-Users] rsyslog settings for good kamailio performance

Albert Petit albertpetit at gmail.com
Fri Sep 14 16:18:07 CEST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120914/6593e8e6/attachment.htm>


More information about the sr-users mailing list