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

Ovidiu Sas osas at voipembedded.com
Mon Oct 17 16:08:38 UTC 2022


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



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com



More information about the Users mailing list