<HTML><BODY>Yes, i did, see below xlog modparam:<br><br># ----- xlog -----<br>modparam("xlog", "buf_size", 8192)<br>modparam("xlog", "long_format", 0)<br>modparam("xlog", "force_color", 1)<br>modparam("xlog", "log_colors", "L_ERR=cr;L_WARN=px,L_INFO=px")<br><br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Воскресенье,  2 декабря 2018, 17:24 UTC от Joel Serrano <joel@textplus.com>:<br>
        <br>
        <div id="">






<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_15437714580000000008_BODY"><div class="class_1543794807"><div><div dir="auto">That looks good. </div></div><div dir="auto"><br></div><div dir="auto">And your modparam values for xlog module?</div><div dir="auto"><br></div><div dir="auto">Have you tried increasing the “buf_size”?</div><div dir="auto"><br></div><div><br><div class="gmail_quote_mailru_css_attribute_postfix"><div dir="ltr">On Sun, Dec 2, 2018 at 08:36 Soltanici Ilie <<a href="//e.mail.ru/compose/?mailto=mailto%3ailiesh@mail.ru" target="_blank" rel=" noopener noreferrer">iliesh@mail.ru</a>> wrote:<br></div><blockquote class="gmail_quote_mailru_css_attribute_postfix" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Sure, <br><br><p>request_route {<br>   include_file "conf.d/request_route.cfg"<br>}</p>conf.d/request_route.cfg:<br>xlog("L_INFO","[START ROUTING]-(Source IP=$si:$sp/Destination IP=$Ri:$Rp)\n");<br><br>route(REQINIT);<br>route(NATDETECT);<br><p># Handle Cancel Requests<br> route(CATCH_CANCEL);<br>route(RETRANSMISSIONS);</p>etc....<br><br><br><br><blockquote style="border-left:1px solid #0857a6;margin:10px;padding:0 0 0 10px">
        Joel Serrano <<a href="//e.mail.ru/compose/?mailto=mailto%3ajoel@textplus.com" target="_blank" rel=" noopener noreferrer">joel@textplus.com</a>>:</blockquote></div><div><blockquote style="border-left:1px solid #0857a6;margin:10px;padding:0 0 0 10px"><br>
        <br>
        <div id="m_5618424941671236943_mailru_css_attribute_postfix">






<div class="m_5618424941671236943js-helper_mailru_css_attribute_postfix m_5618424941671236943js-readmsg-msg_mailru_css_attribute_postfix">
        
        <div>
                
                
            <div id="m_5618424941671236943style_15437660770000000340_BODY_mailru_css_attribute_postfix"><div class="m_5618424941671236943class_1543792836_mailru_css_attribute_postfix"><div><div dir="auto">Can you paste your first lines of request_route?</div></div><div dir="auto"><br></div><div><br><div class="m_5618424941671236943gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><div dir="ltr">On Sun, Dec 2, 2018 at 07:15 Soltanici Ilie <<a href="https://e.mail.ru/compose/?mailto=mailto%3ailiesh@mail.ru" target="_blank" rel=" noopener noreferrer">iliesh@mail.ru</a>> wrote:<br></div><blockquote class="m_5618424941671236943gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><p>Hello,<br><br>I have a strange situation by using xlog module. I don't know for what reason I'm not receiving all logs generated by kamailio.<br><br>This is the configuration which I'm using in kamailio.cfg:<br><br></p><p>log_facility=LOG_LOCAL0<br>log_name="kamailio"<br>log_prefix="{$rm ($mt) | Seq=$cs | Source IP=$si ($proto) | Call ID=$ci} "</p><p># ----- xlog -----<br>modparam("xlog", "buf_size", 8192)<br>modparam("xlog", "long_format", 0)<br>modparam("xlog", "force_color", 1)<br>modparam("xlog", "log_colors", "L_ERR=cr;L_WARN=px,L_INFO=px")<br><br>This is rsyslog configuration file:<br>local0.*             /var/log/kamailio/kamailio.log<br><br>Kamailio is running under kamailio user, permission for the log file are as shown below:<br>-rwxrwxr-x 1 kamailio kamailio 252885132 Dec  2 14:51 /var/log/kamailio/kamailio.log<br><br>In request_route block this is the first line:<br><br>xlog("L_INFO","[START ROUTING]-(Source IP=$si:$sp/Destination IP=$Ri:$Rp)\n");<br><br>The problem is that not every request is logged in the log-file. For example, some "INVITES" requests I can find in the log file, but some of them - I cannot, even that in sngrep I see the request and the call is successfully processed by kamailio. Also, for some requests i can see only partial data, not full call-flow as it supposed to be (for ex. i see only BYE requests, or ACK response instead of full call flow). <br><br>Does someone have the same issue? If you don't - how are you dealing with kamailio log files? I'm thinking to send them to the central ELK stack, but if I have such problems by saving them locally - I don't see any reason to send them elsewhere.<br>I may think that the problem could be in rsyslog itself, but how can I troubleshoot that?<br><br>The traffic on the server is not very high - 30-50 concurrent calls. As a storage i'm using an SSD disk and xfs filesystem. Load on the disk - according to iostat/iotop - is minimum. <br><br>OS: CentOS Linux 7 (Core), Kamailio: 5.2.0 (x86_64/linux) 535e13<br>Thank You.</p></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="https://e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" target="_blank" rel=" noopener noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel=" noopener noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>
</div></div>
            
        
                
        </div>

        
</div>


</div>
</blockquote></div><div><blockquote style="border-left:1px solid #0857a6;margin:10px;padding:0 0 0 10px"></blockquote>
<br>
<br>С уважением,<br>Ilie Soltanici<br><a href="//e.mail.ru/compose/?mailto=mailto%3ailiesh@mail.ru" target="_blank" rel=" noopener noreferrer">iliesh@mail.ru</a><br></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" target="_blank" rel=" noopener noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel=" noopener noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>
</div></div>
            
        
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote> <br>
<br>С уважением,<br>Ilie Soltanici<br>iliesh@mail.ru<br></BODY></HTML>