Re: [OpenSIPS-Users] OpenSIPS - Log Facility partial working

2020-07-09 Thread Sharad Kumar via Users
Now it's working as expected. Thanks for helping.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS - Log Facility partial working

2020-07-08 Thread Valli A. Vallimamod - SIP Solutions
Hi,

You need to put the following in your rsyslog.conf:

LOCAL1.*  /var/log/opensips.log
& stop


Hope this helps.


Best Regards,
-- 
Valli A. Vallimamod
SIP Solutions
vma@sip.solutions
linkedin.com/in/vallimamod
.


> On 8 Jul 2020, at 02:18, Sharad Kumar via Users  
> wrote:
> 
> Hey guys, 
> 
> We configured the opensips server to send the logs to log facility 1 
> (opensips.log), it's working fine but at the same time it's also writing logs 
> to log facility0 (syslog).
> 
> opensips.cfg -- 
> log_level=3
> log_stderror=no
> log_facility=LOG_LOCAL1
> log_name="osips-1"
> 
> 
> rsyslog.conf - 
> LOCAL1.*  /var/log/opensips.log
> 
> opensips -v 
> 
> 
> version: opensips 2.4.7 (x86_64/linux)
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, 
> FAST_LOCK-ADAPTIVE_WAIT
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
> MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll, sigio_rt, select.
> git revision: 0f7cd0a7d
> main.c compiled on 07:56:19 Feb 25 2020 with gcc 6.3.0
> 
> Any help or suggestions will be highly appreciated.
> 
> Thank you
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



Best Regards,
-- 
Valli A. Vallimamod
SIP Solutions
vma@sip.solutions
linkedin.com/in/vallimamod
.



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS - Log Facility partial working

2020-07-07 Thread Sharad Kumar via Users
Hey guys,

We configured the opensips server to send the logs to log facility 1 
(opensips.log), it's working fine but at the same time it's also writing logs 
to log facility0 (syslog).

opensips.cfg --
log_level=3
log_stderror=no
log_facility=LOG_LOCAL1
log_name="osips-1"

rsyslog.conf -
LOCAL1.* /var/log/opensips.log

opensips -v

version: opensips 2.4.7 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, 
FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 0f7cd0a7d
main.c compiled on 07:56:19 Feb 25 2020 with gcc 6.3.0

Any help or suggestions will be highly appreciated.

Thank you___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users