I have setup the kamailio.log file to receive the logs from kamailio and I am receiving some, but I do mot see any logs from xlog commands in the script.
I see logs like this on startup and various others, but none from xlog no matter how I format them.
can anyone advise where I may be going wrong?
current logs:
Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 12 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 12 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 13 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 13 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 14 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 14 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9118]: INFO: jsonrpcs [jsonrpcs_sock.c:453]: jsonrpc_dgram_process(): a new child 0/9118 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9120]: INFO: ctl [io_listener.c:217]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
config:
debug=4 log_stderror=no
log_facility=LOG_LOCAL0 log_prefix="[$mt $hdr(CSeq) $ci] "
example xlogs that do not print (they are the start of request route):
xlog("LOG_LOCAL0","L_ERR","RIK: Start route\n");
xlog("TRACE: Start Route [Main] for [Call-ID: $ci]\n");
Hi,
Do you have systemd-journald forwarding to syslog enabled?
-- Alex
On Apr 17, 2025, at 8:40 AM, Richard Robson via sr-users sr-users@lists.kamailio.org wrote:
I have setup the kamailio.log file to receive the logs from kamailio and I am receiving some, but I do mot see any logs from xlog commands in the script.
I see logs like this on startup and various others, but none from xlog no matter how I format them.
can anyone advise where I may be going wrong?
current logs:
Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 12 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 12 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 13 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 13 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 14 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 14 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9118]: INFO: jsonrpcs [jsonrpcs_sock.c:453]: jsonrpc_dgram_process(): a new child 0/9118 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9120]: INFO: ctl [io_listener.c:217]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
config:
debug=4 log_stderror=no
log_facility=LOG_LOCAL0 log_prefix="[$mt $hdr(CSeq) $ci] "
example xlogs that do not print (they are the start of request route):
xlog("LOG_LOCAL0","L_ERR","RIK: Start route\n");
xlog("TRACE: Start Route [Main] for [Call-ID: $ci]\n");
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
I have enabled it and still no xlogs. I do not see the xlogs in the journal either.
Its V 5.6.6 by the way
Richard
On 17/04/2025 14:18, Alex Balashov wrote:
Hi,
Do you have systemd-journald forwarding to syslog enabled?
-- Alex
On Apr 17, 2025, at 8:40 AM, Richard Robson via sr-users sr-users@lists.kamailio.org wrote:
I have setup the kamailio.log file to receive the logs from kamailio and I am receiving some, but I do mot see any logs from xlog commands in the script.
I see logs like this on startup and various others, but none from xlog no matter how I format them.
can anyone advise where I may be going wrong?
current logs:
Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 12 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 12 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 13 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 13 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:163]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992 for fd 14 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9073]: INFO: <core> [core/udp_server.c:233]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984 on fd 14 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9118]: INFO: jsonrpcs [jsonrpcs_sock.c:453]: jsonrpc_dgram_process(): a new child 0/9118 Apr 17 12:28:49 server01 /usr/local/sbin/kamailio[9120]: INFO: ctl [io_listener.c:217]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
config:
debug=4 log_stderror=no
log_facility=LOG_LOCAL0 log_prefix="[$mt $hdr(CSeq) $ci] "
example xlogs that do not print (they are the start of request route):
xlog("LOG_LOCAL0","L_ERR","RIK: Start route\n");
xlog("TRACE: Start Route [Main] for [Call-ID: $ci]\n");
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!