[Kamailio-Users] kam 1.5 syslog on solaris 10
Robert McGilvray
rmcgilvr at globeop.com
Tue Oct 27 15:01:26 CET 2009
I'm having some issues getting kam to log correctly to syslog after it
daemonizes. I get all the initialization entries in the proper logfile
but nothing after that - I have xlog statements throughout the config
which only show up in syslog if fork=no. I've tested my syslog config
with the system logger which works correctly executed as the kamailio
user. If I run syslog in debug I don't see it receiving anything from
kam after initialization. Any ideas?
log_stderror=no
log_facility=LOG_LOCAL1
debug=7
fork=yes
children=4
/etc/syslog.conf (with tabs)
local1.debug
/var/log/globeop/kamailio.log
This is the correct format of syslog in solaris. It only uses wildcard
(*) in facility not levels. Specifying debug will include everything at
higher levels. From the man page:
For a given facility and level, syslogd matches all messages
for that
level and all higher levels. For example, an entry that
specifies a
level of crit also logs messages at the alert and emerg levels.
This config is working correctly on sol 10 with openser 1.3.
ykt1sipprd2# tail -f /var/log/globeop/kamailio.log
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 951507 local1.debug]
DBG:core:grep_aliases: comparing host [2:loghost:5060] with us
[1:loghost:5060]
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 951507 local1.debug]
DBG:core:grep_aliases: comparing host [2:loghost:5060] with us
[1:ykt1sipprd2:5060]
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 793175 local1.debug]
DBG:core:grep_aliases: no match for: [2:loghost:5060]
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 634971 local1.debug]
DBG:core:socket2str: <tcp:172.20.151.148:5060>
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 797031 local1.debug]
DBG:core:fm_malloc_init: F_OPTIMIZE=16384, /ROUNDTO=2048
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 596959 local1.debug]
DBG:core:fm_malloc_init: F_HASH_SIZE=2067, fm_block size=16560
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 362601 local1.debug]
DBG:core:fm_malloc_init: params (fc400000, 33554432), start=fc400000
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 551434 local1.debug]
DBG:core:shm_mem_init_mallocs: success
Oct 27 09:50:46 ykt1sipprd2 kamailio[3813]: [ID 123545 local1.info]
INFO:core:init_tcp: using /dev/poll as the TCP io watch method (auto
detected)
Oct 27 09:50:46 ykt1sipprd2 kamailio[3815]: [ID 721503 local1.warning]
WARNING:core:daemonize: pid file contains old pid, replacing pid
--------------------------------------------------------------------------
This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/users/attachments/20091027/54a53ff7/attachment.htm>
More information about the Users
mailing list