[OpenSIPS-Users] opensips and syslog facility/level

Oleksandr Kunytsia okunia at gmail.com
Wed Aug 6 19:29:08 CEST 2014


on my config debug set to 0:
----

#
# GLOBALS
#
debug=0
log_facility=LOG_LOCAL2
log_stderror=no
------


I also configured rsyslog for saving LOCAL2 to file with specific template:
----
$template precise,"%pri-text%: %timegenerated% %HOSTNAME%
%syslogtag%%msg%\n"
local2.*                       -/var/log/sips.log;precise
----

extract from  /var/log/sips.log:

local2.err<147>: Aug  6 17:18:52 r-sip opensips[5588]: new-int
INVITE[PhoneNUM,PhoneNUM57]: SIP 404 after 19161ms from IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5612]: r-lt1
INVITE[+1PhoneNUM,PhoneNUM1]: SIP 180 after 25905ms from IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5592]: r-lt1
INVITE[+1PhoneNUM,PhoneNUM5]: relayed IP.ADD.RE.SS outbound to IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5600]: r-in1
INVITE[+1PhoneNUM,PhoneNUM7]: relayed IP.ADD.RE.SS outbound to IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5588]: new-int
INVITE[PhoneNUM7,PhoneNUM]: relayed IP.ADD.RE.SS outbound to IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5560]: r-in1
INVITE[+PhoneNUM,PhoneNUM437]: SIP 100 after 3ms from IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5650]: r-lt1
INVITE[800PhoneNUM,PhoneNUM248]: relayed IP.ADD.RE.SS outbound to
IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5622]: r-lt1
INVITE[+PhoneNUM,PhoneNUM015]: SIP 100 after 9ms from IP.ADD.RE.SS
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5624]: Broadvox
BYE[PhoneNUM,PhoneNUM00] existing dialog
local2.err<147>: Aug  6 17:18:52 r-sip opensips[5604]: r-in1
INVITE[80PhoneNUM,PhoneNUM213]: SIP 183 after 7270ms from IP.ADD.RE.SS


On Wed, Aug 6, 2014 at 11:17 AM, Muhammad Shahzad <shaheryarkh at gmail.com>
wrote:

> You can set opensips log level using "debug" parameter.
>
> http://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc35
>
> Also make sure your syslog service is configured to send local2.* logs to
> the log file(s) where you want to see them. i.e. to see all opensips logs
> file named opensips.log set /etc/rsyslog.conf to have entry like this,
>
> local2.*  /var/log/opensips.log
>
> Then restart the service.
>
> Hope this helps.
>
> Thank you.
>
>
>
>
> On Wed, Aug 6, 2014 at 10:49 AM, Oleksandr Kunytsia <okunia at gmail.com>
> wrote:
>
>> Hello,
>>
>> Logging of my opensips looks like the following:
>>
>> ----cut----
>> log_facility=LOG_LOCAL2
>> log_stderror=no
>> ----cut----
>>
>> Opensips sends logging information as LOCAL2.error messages,
>>
>> How to configure to send messages with another log_level? e.g.
>> local2.info?
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140806/ada8d229/attachment.htm>


More information about the Users mailing list