[OpenSIPS-Users] Loglevel priority prefix in /var/log/messages

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Aug 7 06:37:38 EDT 2019


Hi Denys,

Check your syslog configuration and see to which log file the LOCAL0 
facility is diverted - maybe you are looking into the wrong file.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 07/31/2019 11:57 AM, Denys Pozniak wrote:
> Hello!
>
> Please help me to configure loglevel prefix priority (like INFO, 
> NOTICE, WARNING, ERROR) for /var/log/messages.
> As you can see below OpenSIPS does not display it, but for example, 
> Rtpengine does.
>
> ####### Global Settings ########
> log_level=3
> log_stderror=no
> log_facility=LOG_LOCAL0
> ...
>
> ####### Routing Logic ########
>
> route{
>         xlog("L_INFO","info_New message rm=$rm / si=$si / ru=$ru / 
> ci=$ci \n");
>         xlog("L_NOTICE","notice_New message rm=$rm / si=$si / ru=$ru / 
> ci=$ci \n");
>         xlog("L_WARN","warning_New message rm=$rm / si=$si / ru=$ru / 
> ci=$ci \n");
>         xlog("L_ERR","error_New message rm=$rm / si=$si / ru=$ru / 
> ci=$ci \n");
> ...
>
> [root at localhost opensips]# tail -f /var/log/messages
> Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: notice_New 
> message rm=INVITE / si=192.168.56.1 / ru=sip:55555 at 192.168.56.3 
> <mailto:sip%3A55555 at 192.168.56.3> / 
> ci=008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1 
> <mailto:008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1>
> Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: warning_New 
> message rm=INVITE / si=192.168.56.1 / ru=sip:55555 at 192.168.56.3 
> <mailto:sip%3A55555 at 192.168.56.3> / 
> ci=008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1 
> <mailto:008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1>
> Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: error_New message 
> rm=INVITE / si=192.168.56.1 / ru=sip:55555 at 192.168.56.3 
> <mailto:sip%3A55555 at 192.168.56.3> / 
> ci=008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1 
> <mailto:008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1>
> Jul 27 15:28:31 localhost rtpengine: [1564255711.862367] INFO: 
> [008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1 
> <mailto:008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1>]: Received 
> command 'offer' from 10.10.200.43:53649 <http://10.10.200.43:53649>
> Jul 27 15:28:31 localhost rtpengine: [1564255711.862410] NOTICE: 
> [008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1 
> <mailto:008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1>]: Creating 
> new call
> Jul 27 15:28:31 localhost rtpengine: [1564255711.862684] INFO: 
> [008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1 
> <mailto:008BDC86-DDB1-E911-80AA-492E68E5C084 at 192.168.56.1>]: Replying 
> to 'offer' from 10.10.200.43:53649 <http://10.10.200.43:53649> 
> (elapsed time 0.000304 sec)
>
> [root at localhost opensips]# opensips -V
> version: opensips 3.0.0 (x86_64/linux)
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_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.
> main.c compiled on 13:02:44 May 30 2019 with gcc 4.8.5
>
> [root at localhost opensips]# cat /etc/redhat-release
> CentOS Linux release 7.6.1810 (Core)
>
>
> -- 
>
> BR,
> Denys Pozniak
>
>
>
>
> _______________________________________________
> 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/20190807/13a9a6eb/attachment.html>


More information about the Users mailing list