<div dir="ltr">Unfortunately, I don't have that option to use syslog-ng as rsyslog is our standard setup here.  Given this said, I'm back to string manipulation.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 27, 2018 at 9:24 AM Sergey Okhapkin <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:"Noto Sans";font-size:10pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">I use syslog-ng instead of rsyslog, it logs multi line messages just fine.<br><br>On Thursday, December 27, 2018 9:14:23 AM EST Andrew Chen wrote:<br></p>
<p style="margin:12px 40px 0px;text-indent:0px">Ah ok.  I thought L_INFO was default.</p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">But, as for my other question, why the string manipulation doesn't work here?</p>
<p style="margin:0px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px">On Thu, Dec 27, 2018 at 3:10 AM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank"><span style="text-decoration:underline;color:rgb(41,128,185)">miconda@gmail.com</span></a>> wrote:<br></p>
<p style="margin:12px 40px 12px 46px;text-indent:0px">Hello, </p>
<p style="margin:12px 40px 12px 46px;text-indent:0px">do you mean that it writes "ERROR" in the prefix of the log message? </p>
<p style="margin:12px 40px 12px 46px;text-indent:0px">That is the default log level for xlog() function. You can write to another log level by providing it as first parameter: </p>
<p style="margin:12px 40px 12px 46px;text-indent:0px">xlog("L_INFO", "$mb"); </p>
<p style="margin:12px 40px 12px 46px;text-indent:0px">Cheers,<br>Daniel<br></p>
<p style="margin:0px 40px 0px 46px;text-indent:0px">On 26.12.18 22:24, Andrew Chen wrote:<br></p>
<p style="margin:12px 80px 0px 86px;text-indent:0px">Hey community, </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">I'm currently trying to config our new 5.1.2 kamailio server and I want to xlog $mb.  Whenever I do this, I get an ERROR logged to my syslog  </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">Dec 26 21:15:58 sjomainkama55 /usr/sbin/kamailio[5954]: {1 1 INVITE <padding>@<padding>} ERROR: <script>: INVITE sip:<padding>@<a href="http://sjomainkama55.a.fuzemeeting.com:443" target="_blank"><span style="text-decoration:underline;color:rgb(41,128,185)">sjomainkama55.a.fuzemeeting.com:443</span></a><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">Does anyone know why this is?<br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">Also, I noticed I can't get rid of #012#015 at all.  I modified the rsyslogd.conf file as instructed here: </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">"i need to add the next line to /etc/rsyslog.conf "$EscapeControlCharactersOnReceive off"  <br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">and when I did this, the control characters disappear but all it printed out was the first line of the SIP message.  I also try to assign $mb to a $var() and do a {re.replace} on  </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">that string and that didn't work either. </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">I ended up having to create a side script to parse the whole /var/log/syslog and do regex replace the #012#015 with real newline which is not what I really want for me or anyone else who needs to analyze the Kamailio logs. </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">Please advise. </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">Thanks. </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br>-- <br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px">Andy Chen </p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><a href="mailto:achen@thinkingphones.com" target="_blank"><span style="text-decoration:underline;color:rgb(41,128,185)">achen@</span></a><a href="http://fuze.com" target="_blank"><span style="text-decoration:underline;color:rgb(41,128,185)">fuze.com</span></a><br></p>
<p style="margin:0px 80px 0px 86px;text-indent:0px"><br><br><br><span style="font-family:"Arial,sans-serif";font-size:14px;color:rgb(51,51,51);background-color:rgb(255,255,255)">*Confidentiality Notice: The information contained in this e-mail and any<br>attachments may be confidential. If you are not an intended recipient, you<br>are hereby notified that any dissemination, distribution or copying of this<br>e-mail is strictly prohibited. If you have received this e-mail in error,<br>please notify the sender and permanently delete the e-mail and any<br>attachments immediately. You should not retain, copy or use this e-mail or<br>any attachment for any purpose, nor disclose all or any part of the<br>contents to any other person. Thank you.*</span> <br></p>
<pre style="margin:12px 80px 0px 86px;text-indent:0px"><span style="font-family:Hack">_______________________________________________</span></pre>
<pre style="margin:0px 80px 0px 86px;text-indent:0px"><span style="font-family:Hack">Kamailio (SER) - Users Mailing List</span></pre>
<pre style="margin:0px 80px 0px 86px;text-indent:0px"><a href="mailto:sr-users@lists.kamailio.org" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">sr-users@lists.kamailio.org</span></a></pre>
<pre style="margin:0px 80px 12px 86px;text-indent:0px"><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span></a> </pre>
<pre style="margin:12px 40px 0px 46px;text-indent:0px"><span style="font-family:Hack">-- </span></pre>
<pre style="margin:0px 40px 0px 46px;text-indent:0px"><span style="font-family:Hack">Daniel-Constantin Mierla -- </span><a href="http://www.asipto.com" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">www.asipto.com</span></a></pre>
<pre style="margin:0px 40px 0px 46px;text-indent:0px"><a href="http://www.twitter.com/miconda" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">www.twitter.com/miconda</span></a><span style="font-family:Hack"> -- </span><a href="http://www.linkedin.com/in/miconda" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">www.linkedin.com/in/miconda</span></a></pre>
<pre style="margin:0px 40px 0px 46px;text-indent:0px"><span style="font-family:Hack">Kamailio World Conference - May 6-8, 2019 -- </span><a href="http://www.kamailioworld.com" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">www.kamailioworld.com</span></a></pre>
<pre style="margin:0px 40px 12px 46px;text-indent:0px"><span style="font-family:Hack">Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- </span><a href="http://www.asipto.com" target="_blank"><span style="font-family:Hack;text-decoration:underline;color:rgb(41,128,185)">www.asipto.com</span></a> </pre>
<p style="margin:0px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px"><br>-- <br></p>
<p style="margin:0px 40px;text-indent:0px">Andy Chen</p>
<p style="margin:0px 40px;text-indent:0px">Sr. Telephony Lead Engineer</p>
<p style="margin:0px 40px;text-indent:0px">415 516 5535 (M)</p>
<p style="margin:0px 40px;text-indent:0px"><a href="mailto:achen@thinkingphones.com" target="_blank"><span style="text-decoration:underline;color:rgb(41,128,185)">achen@</span></a><a href="http://fuze.com" target="_blank"><span style="text-decoration:underline;color:rgb(41,128,185)">fuze.com</span></a></p>
<p style="margin:0px 40px;text-indent:0px"><br><br><span style="font-family:"Arial,sans-serif";font-size:14px;color:rgb(51,51,51);background-color:rgb(255,255,255)">*Confidentiality Notice: The information contained in this e-mail and any<br>attachments may be confidential. If you are not an intended recipient, you<br>are hereby notified that any dissemination, distribution or copying of this<br>e-mail is strictly prohibited. If you have received this e-mail in error,<br>please notify the sender and permanently delete the e-mail and any<br>attachments immediately. You should not retain, copy or use this e-mail or<br>any attachment for any purpose, nor disclose all or any part of the<br>contents to any other person. Thank you.*</span> </p>
<p style="margin:0px;text-indent:0px"><br><br></p></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="font-size:12.8px">Andy Chen</div><div dir="ltr" style="font-size:12.8px"><div>Sr. Telephony Lead Engineer</div><div>415 516 5535 (M)</div><div><a href="mailto:achen@thinkingphones.com" target="_blank">achen@</a><a href="http://fuze.com" target="_blank">fuze.com</a></div><div><br></div></div></div></div></div></div>

<br>
<span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">*Confidentiality Notice: The information contained in this e-mail and any</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">attachments may be confidential. If you are not an intended recipient, you</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">are hereby notified that any dissemination, distribution or copying of this</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">e-mail is strictly prohibited. If you have received this e-mail in error,</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">please notify the sender and permanently delete the e-mail and any</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">attachments immediately. You should not retain, copy or use this e-mail or</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">any attachment for any purpose, nor disclose all or any part of the</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">contents to any other person. Thank you.*</span>