Hello,

kamailio uses internally openlog() and syslog() functions from standard libc. It has not control of what the syslog daemon does, it is a matter of OS configuration, so what you mention might be the required configuration, not a workaround. Anyhow, maybe others can comment more.

There are many other cases when the OS has to be tuned to get desired behaviour, eg., increase file descriptor limits to handle lots of connections.

Cheers,
Daniel

On 23.11.21 12:16, Ginhoux, Patrick wrote:

Hi,

 

I resend this mail because of the initial destination address was not correct.

 

The topic was a logging problem :

 

With the upgrade of my SIP Router proxies to RHEL 7  (and Kamailio 5.0.7) , we encounter problems where the logs are blocked to be written in the syslog.

 

This problem is similar as the one reported in this article : [SR-Users] Kamailio logs in RHEL 7 environment.

The resolution was to increase some journald/rsyslog settings (RateLimitBurst=1000000 / $imjournalRatelimitInterval 1 $imjournalRatelimitBurst 500000).
 
But it is somehow a workaround. 
 
I’m looking to know if it should be possible for kamailio to write directly the logs to the syslog only.
 
Thanks in advance to those can help me.
 

Regards

Patrick Ginhoux

 

De : Ginhoux, Patrick
Envoyé : lundi 22 novembre 2021 16:49
À : 'sr-users' <sr-users-bounces@lists.kamailio.org>
Objet : How to not write logs to journald with kamailio

 

Hi,

 

With the upgrade of my SIP Router proxies to RHEL 7  (and Kamailio 5.0.7) , we encounter problems where the logs are blocked to be written in the syslog.

 

This problem is similar as the one reported in this article : [SR-Users] Kamailio logs in RHEL 7 environment.

The resolution was to increase some journald/rsyslog settings (RateLimitBurst=1000000 / $imjournalRatelimitInterval 1 $imjournalRatelimitBurst 500000).
 
But it is somehow a workaround. 
 
I’m looking to know if it should be possible for kamailio to write directly the logs to the syslog only.
 
Thanks in advance to those can help me.
 

Regards

Patrick Ginhoux


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/