Here is the sequence of actions, which must be done in order,<div><br></div><div>1. edit syslog.conf to define your custom log file for opensips.</div><div>2. restart syslog service.</div><div>3. restart opensips.<br><div>
<br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 5:28 PM, Miha <span dir="ltr"><<a href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am using centos. I have restarted syslog service<br>
(/etc/init.d/syslog restart) which created me opensips.log.<br>
<br>
But still it is empty.<br>
<div><div class="h5"><br>
On Mon, 19 Nov 2012 14:34:31 +0100<br>
Muhammad Shahzad <<a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a>> wrote:<br>
> you need restart syslog service. Under debian you can do<br>
> this by,<br>
><br>
> service rsyslog restart<br>
><br>
> This will create log file as well.<br>
><br>
> Thank you.<br>
><br>
><br>
> On Mon, Nov 19, 2012 at 1:44 PM, Miha <<a href="mailto:miha@softnet.si">miha@softnet.si</a>><br>
> wrote:<br>
><br>
> > HI,<br>
> ><br>
> > here is my pastebin when I do opensips start:<br>
> > <a href="http://pastebin.com/Z9hxrHB2" target="_blank">http://pastebin.com/Z9hxrHB2</a><br>
> ><br>
> ><br>
> > debug=6<br>
> > log_stderror=yes<br>
> > log_facility=LOG_LOCAL0<br>
> ><br>
> ><br>
> > syslog.conf<br>
> ><br>
> ><br>
> ><br>
> > #opensips<br>
> > local0.*<br>
> > /var/log/opensips.log<br>
> ><br>
> ><br>
> ><br>
> > Still no luck:(<br>
> ><br>
> > I tried to cat massages, opensips.log but there is no<br>
> opensips log.<br>
> ><br>
> > Br,<br>
> > Miha<br>
> ><br>
> ><br>
> > On 11/19/2012 12:35 PM, Saúl Ibarra Corretgé wrote:<br>
> ><br>
> > On Nov 19, 2012, at 12:26 PM, Miha wrote:<br>
> ><br>
> ><br>
> > Hi,<br>
> ><br>
> > my opensips.cfg:<br>
> > debug=6<br>
> > log_stderror=yes<br>
> > log_facility=LOG_LOCAL0<br>
> ><br>
> > syslog.conf<br>
> ><br>
> > #opensips<br>
> > local0.* -/var/log/opensips.log<br>
> ><br>
> ><br>
> > Where could be a poroblem that opensips does not log?<br>
> > Opensips.log is empty.<br>
> ><br>
> ><br>
> > Remove that '-' from the syslog.conf line, that<br>
> prevents the matching entries from going there. It should<br>
> look like this:<br>
> ><br>
> > #opensips<br>
> > local0.* /var/log/opensips.log<br>
> ><br>
> ><br>
> > Regards,<br>
> ><br>
> > PS: This applies to rsyslog.<br>
> ><br>
> > --<br>
> > Saúl Ibarra Corretgé<br>
> > AG Projects<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing<br>
><br>
</div></div>listUsers@lists.opensips.orghttp://<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<div class="HOEnZb"><div class="h5">> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> ><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> Muhammad Shahzad<br>
> -----------------------------------<br>
> CISCO Rich Media Communication Specialist (CRMCS)<br>
> CISCO Certified Network Associate (CCNA)<br>
> Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085">+49 176 99 83 10 85</a><br>
> MSN: <a href="mailto:shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><br>
> Email: <a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><br>
</div></div></blockquote></div><br></div></div>