<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>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.</p>
    <p>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.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 23.11.21 12:16, Ginhoux, Patrick
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DB9PR10MB4715AC21B7759659B2059FCBB6609@DB9PR10MB4715.EURPRD10.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I resend this mail because of the initial
          destination address was not correct.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">The topic was a logging problem :<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">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.<o:p></o:p></span></pre>
        <p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-left:36.0pt">This problem is
          similar as the one reported in this article : <a
href="https://lists.kamailio.org/pipermail/sr-users/2018-April/101065.html"
            moz-do-not-send="true">[SR-Users] Kamailio logs in RHEL 7
            environment</a>.<o:p></o:p></p>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">The resolution was to increase some journald/rsyslog settings (RateLimitBurst=1000000 / $imjournalRatelimitInterval 1 $imjournalRatelimitBurst 500000).<o:p></o:p></span></pre>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">But it is somehow a workaround. <o:p></o:p></span></pre>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I’m looking to know if it should be possible for kamailio to write directly the logs to the syslog only.<o:p></o:p></span></pre>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
        <pre style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks in advance to those can help me.<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span style="color:black"><o:p></o:p></span></pre>
        <p class="MsoNormal">Regards<o:p></o:p></p>
        <p class="MsoNormal">Patrick Ginhoux<o:p></o:p></p>
        <p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b>De :</b> Ginhoux, Patrick <br>
              <b>Envoyé :</b> lundi 22 novembre 2021 16:49<br>
              <b>À :</b> 'sr-users'
              <a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org"><sr-users-bounces@lists.kamailio.org></a><br>
              <b>Objet :</b> How to not write logs to journald with
              kamailio<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">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.<o:p></o:p></span></pre>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">This problem is similar as the one reported
          in this article : <a
href="https://lists.kamailio.org/pipermail/sr-users/2018-April/101065.html"
            moz-do-not-send="true">[SR-Users] Kamailio logs in RHEL 7
            environment</a>.<o:p></o:p></p>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">The resolution was to increase some journald/rsyslog settings (RateLimitBurst=1000000 / $imjournalRatelimitInterval 1 $imjournalRatelimitBurst 500000).<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">But it is somehow a workaround. <o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I’m looking to know if it should be possible for kamailio to write directly the logs to the syslog only.<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks in advance to those can help me.<o:p></o:p></span></pre>
        <pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span style="color:black"><o:p></o:p></span></pre>
        <p class="MsoNormal">Regards<o:p></o:p></p>
        <p class="MsoNormal">Patrick Ginhoux<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>