[SR-Users] Debugging and syslog

Barry Flanagan barry at flanagan.ie
Mon Mar 25 15:58:53 CET 2013


On 21 March 2013 20:12, Daniel W. Graham <dan at cmsinter.net> wrote:

> I still cannot get any log messages to appear in my log, this makes it
> very hard to troubleshoot issues. Does anyone have any idea what the issue
> could be?****
>
> **
>

Perhaps change the ownership of kamailio.log to the syslog user?

Hope this helps

-Barry


 **
>
> CentOS 6 ****
>
> ** **
>
> Doesn’t matter if I use default syslog facility and write messages to
> /var/log/messages or my custom file:****
>
> ** **
>
> local0.*
> -/var/log/kamailio.log****
>
> ** **
>
> #!define WITH_DEBUG****
>
> ** **
>
> #!ifdef WITH_DEBUG****
>
> debug=4****
>
> log_stderror=yes****
>
> #!else****
>
> debug=2****
>
> log_stderror=no****
>
> #!endif****
>
> ** **
>
> memdbg=5****
>
> memlog=5****
>
> ** **
>
> log_facility=LOG_LOCAL0****
>
> ** **
>
> ------------------------****
>
> xlog("L_INFO", "call $fu to $tu for $du - Exceeds quota, call rejected
> [$avp(s:calls)/$avp(s:call-quota)]\n");****
>
> ** **
>
> Thanks****
>
> -Dan****
>
> ** **
>
> *From:* sr-users-bounces at lists.sip-router.org [mailto:
> sr-users-bounces at lists.sip-router.org] *On Behalf Of *Daniel W. Graham
> *Sent:* Tuesday, November 27, 2012 8:58 PM
> *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
> Users Mailing List
> *Subject:* Re: [SR-Users] Debugging and syslog****
>
> ** **
>
> Running CentOS 6 but I did try something similar with a separate file with
> no luck.****
>
> ** **
>
> If I use the default syslog.conf file and send messages to default log
> file, I still get nothing.****
>
> ** **
>
> *From:* sr-users-bounces at lists.sip-router.org
> [mailto:sr-users-bounces at lists.sip-router.org] *On Behalf Of *Konstantin
> M.
> *Sent:* Monday, November 26, 2012 10:25 PM
> *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
> Users Mailing List
> *Subject:* Re: [SR-Users] Debugging and syslog****
>
> ** **
>
> If you're running Debian - try out my solution:
>
> 1) Edit /etc/rsyslog.d/50-default.conf  (or /etc/rsyslog.conf, whatever
> are located default values for *.*)
> and change from:
> auth,authpriv.*                 /var/log/auth.log
> *.*;auth,authpriv.none          -/var/log/syslog
>
> to:
> auth,authpriv.*                 /var/log/auth.log
> *.*;auth,authpriv.none,\
>     local0.none     -/var/log/syslog
>
> (just add local0.none)
>
> 2) Create new file: /etc/rsyslog.d/kamailio.conf:
> local0.*                        -/var/log/kamailio/kamailio.log
>
> 3) Create log directory: # mkdir /var/log/kamailio/
>
> 4) Create log file: # touch /var/log/kamailio/kamailio.log
>
> 5) Restart rsyslog: # invoke-rc.d rsyslog restart
>
> I have the following configuration of logging:
> #!ifdef WITH_DEBUG
> debug=4
> log_stderror=yes
> #!else
> debug=2
> log_stderror=no
> #!endif
>
> memdbg=5
> memlog=5
>
> log_facility=LOG_LOCAL0
>
> ****
>
> 2012/11/27 Daniel W. Graham <dan at cmsinter.net>****
>
> Thanks for the reply -
>
> I have done that with no luck.****
>
>
> -----Original Message-----
> From: sr-users-bounces at lists.sip-router.org [mailto:
> sr-users-bounces at lists.sip-router.org] On Behalf Of Iwan Budi Kusnanto
> Sent: Monday, November 26, 2012 10:10 PM
> To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
> Mailing List
> Subject: Re: [SR-Users] Debugging and syslog
>
> touch the log file?
> restart rsyslog?
>
> On Tue, Nov 27, 2012 at 3:38 AM, Daniel W. Graham <dan at cmsinter.net>
> wrote:
> > Hello,
> >
> > Reaching out for some assistance with debugging, I am not seeing any
> > xlog messages in my log file. If there is any other info I didn’t
> > include that would be helpful please let me know.
> >
> >
> >
> > Any ideas are appreciated.
> >
> >
> >
> > Using Kamailio 3.3.2 & Cent OS 6
> >
> >
> >
> > Rsyslog.conf
> >
> > --------------------
> >
> > *.info;mail.none;authpriv.none;cron.none;local0.none    /var/log/messages
> >
> > # Kamailio
> >
> > local0.*
>  -/var/log/kamailio
> >
> >
> >
> >
> >
> > Kamailio CFG
> >
> > ------------------------------
> >
> > #!define WITH_DEBUG
> >
> >
> >
> > #!ifdef WITH_DEBUG
> >
> > debug=4
> >
> > log_stderror=yes
> >
> > #!else
> >
> > debug=2
> >
> > log_stderror=no
> >
> > #!endif
> >
> >
> >
> > log_facility=LOG_LOCAL0
> >
> >
> >
> > loadmodule "xlog.so"
> >
> >
> >
> > Example xlog-
> >
> >
> >
> > xlog("L_INFO", "No more gateways \n");
> >
> >
> >
> > Thanks,
> >
> > Dan-
> >
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> > list sr-users at lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
>
>
>
> --
> Iwan Budi Kusnanto
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users****
>
> ** **
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130325/cfafd6b9/attachment-0001.htm>


More information about the sr-users mailing list