Hi,
In kamailio.cfg place
log_name="kamailio"
to have only kamailio as log stuff
And just for the records - how to get rid off the rsyslog prefix time/date
stuff:
Depends on your syslog facility in config
# /etc/rsyslog.d/kamailio.conf
# drop :msg from rtpengine with "timer run time" - debugging only:
:msg, contains, "timer run time" ~
# Template only msg:
$template myFormat,"%msg%\n"
# log only to local* and NOT to /var/log/messages
local6.*;local6.!=info -/var/log/platform/voip/kamailio/rtpengine.log
local6.* stop
local5.* -/var/log/platform/voip/kamailio/rtpengine-cdr.log; myFormat
local5.* stop
local4.* -/var/log/platform/voip/kamailio/kamailio.log
local4.* stop
local2.* -/var/log/platform/voip/kamailio/kamailio-cdr.log; myFormat
local2.* stop
local1.* -/var/log/platform/voip/kamailio/kamailio-cdr-json.log; myFormat
Hope that helps a bit.
Steve Wilkins <swwilkins(a)mitre.org> schrieb am Do., 4. Nov. 2021, 18:07:
Hello,
Is there a way to suppress the printing “date & time, host, and Kamailio
execution path” at the begging of each xlog line?
Example current xlog line:
*Nov 4 16:54:52 myserver /usr/local/sbin/kamailio[7021]: INFO:
<script>: => Test xlog line*
I would like xlog line to be:
*INFO: <script>: => Test xlog line*
Thank you,
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to
the sender!
Edit mailing list options or unsubscribe:
*
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users