[OpenSIPS-Users] turn off syslog logging with OpenSIPS 3.2 ?

Kingsley Tart kingsley at dns99.co.uk
Mon Oct 17 16:20:45 UTC 2022


Hi,

Thanks. I presume from your answer that OpenSIPS will always talk to
syslog regardless of what logging settings I configure within OpenSIPS.
Did I read that right?

If that's the case, I'm probably better off not telling OpenSIPS to log
to a local file itself and split it out within syslog's config. I
expect that would be more efficient than OpenSIPS writing the log to
two places and then have one of those places (syslog) ignore what it's
being given.

There's stuff I need to learn about how to configure syslog but at
least your answer has given me some pointers, thanks.

Cheers,
Kingsley.

On Mon, 2022-10-17 at 12:08 -0400, Ovidiu Sas wrote:
> Hello Kingsley,
> 
> You need to disable logging from local0 into /var/log/syslog.
> Check you (r)syslog.conf file (whatever that is on you OS) and add
> "local0.none" for /var/log/syslog
> 
> Example:
> *.*;auth,authpriv,\
> local0,local1.none      -/var/log/syslog
> 
> Hope this helps,
> -ovidiu
> 
> On Mon, Oct 17, 2022 at 8:19 AM Kingsley Tart <kingsley at dns99.co.uk>
> wrote:
> > 
> > Hi,
> > 
> > is there a way in OpenSIPS 3.2 of logging to /var/log/opensips.log
> > but
> > not copy these logs into syslog?
> > 
> > I have these log settings:
> > 
> > log_level=3
> > xlog_level=1
> > log_stderror=no
> > log_facility=LOG_LOCAL0
> > 
> > What I'm seeing is opensips logs in /var/log/opensips.log but every
> > entry in there is duplicated in /var/log/syslog; I don't want them
> > in
> > there.
> > 
> > Is there a way in OpenSIPS to configure this, or should I instead
> > tell
> > OpenSIPS to log using LOG_DAEMON and configure syslog to split
> > opensips
> > logs out itself?
> > 
> > I've tried googling and looking at the OpenSIPS docs but can't find
> > the
> > answer.
> > 
> > Cheers,
> > Kingsley.
> > 
> > 
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> 




More information about the Users mailing list