[SR-Users] 回复: Why? there isn't a syslog.conf under mykamailiodirectory?
sunny_day
416415455 at qq.com
Wed Dec 21 07:04:18 CET 2011
Elena, your advice is very useful for me. Thank you very much. :-)
However,i think i should introduce the environment I now used.
First, there are 3 users on the linux, and one kamailio.cfg for each user. I am not the root user. So i don't have the priviledge to write the diretory---->/var/log/messages
According the introduction you provided for me, I want to setup my own log file. But I am not sure whether it will work. The idea is:
1. In kamailio.cfg set "log_facility=LOG_LOCAL5"
2. In syslog.conf set
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none;local5.none /var/log/messages
3. In syslog.conf set
# log messages with LOG_LOCAL5 in /var/log/kamailio.log
local5.* -/home/albert/mylocal/myvar/log/kamailio.log
Any idea will be appreciated. Thanks in advance.
------------------
albert.gu
------------------ åå§é®ä»¶ ------------------
å件人: "Elena-Ramona Modroiu"<ramona at asipto.com>;
åéæ¶é´: 2011å¹´12æ21æ¥(ææä¸) åæ¨4:29
æ¶ä»¶äºº: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List"<sr-users at lists.sip-router.org>;
æé: "sunny_day"<416415455 at qq.com>;
主é¢: Re: [SR-Users] åå¤ï¼ Why? there isn't a syslog.conf under mykamailiodirectory?
Hi,
regarding the configuration of syslog to write kamailio log messges in a special file, you can find couple of tutorials on kamailio.org wiki sites. One is:
http://www.kamailio.org/wiki/tutorials/3.2.x/syslog
Regards,
Ramona
On 12/20/11 10:35 AM, sunny_day wrote: I got it . Thank you Michal :)
------------------
albert.gu
------------------ åå§é® 件 ------------------
å件人: "Michal Matyska"<michal.matyska at iptel.org>;
åéæ¶é´: 2011å¹´12æ20æ¥(ææäº) ä¸å5:20
æ¶ä»¶äºº: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List"<sr-users at lists.sip-router.org>;
主é¢: Re: [SR-Users] Why? there isn't a syslog.conf under mykamailiodirectory?
Hi,
use -E option and you'll get all the logs on the sterr.
Michal
sunny_day pÃÅ¡e v Út 20. 12. 2011 v 17:10 +0800:
> Olle , Thank you very much for your reply!
> I am not the root user on the unix system. but I want to customize the
> log file for the function: xlog.
> Now, I don't know where to see the content what xlog writes. It can
> help me to debug the script of kamailio.cfg i edited.
>
> what i do is collect the CDRs by dialog and acc modules. Any
> suggestion will be appreciated.
>
> Thanks a lot !
>
> ------------------
> albert.gu
>
>
> ------------------ Original ------------------
> From: "Olle E. Johansson"<oej at edvina.net>;
> Date: Tue, Dec 20, 2011 04:57 PM
> To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
> UsersMailing List"<sr-users at lists.sip-router.org>;
>
> Subject: Re: [SR-Users] Why? there isn't a syslog.conf under my
> kamailiodirectory?
>
>
> 20 dec 2011 kl. 05:57 skrev sunny_day:
>
> > There should be a syslog.conf file under the kamailio directory.
> > But I haven't.
> >
> > I only want to see the contents generated by "xlog"
>
> Syslog is a daemon in your operating system. The configuration file is
> propably in the /etc
> directory. Try running "man syslog.conf" for more information about
> that file.
>
> /O
>
>
> _______________________________________________
> 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
_______________________________________________ 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/20111221/91afa0f0/attachment.htm>
More information about the sr-users
mailing list