<p></p>

<h3>Description</h3>
<p>Kamailio recently added JSON logging support, described on these two pages:<br>
<a href="https://www.kamailio.org/w/2020/04/structured-json-logging/" rel="nofollow">https://www.kamailio.org/w/2020/04/structured-json-logging/</a><br>
<a href="https://www.kamailio.org/wiki/cookbooks/devel/core#log_engine_cli_parameter" rel="nofollow">https://www.kamailio.org/wiki/cookbooks/devel/core#log_engine_cli_parameter</a></p>
<p>Structured logging is particularly useful when:</p>
<ol>
<li>there are multiple applications involved in a call (e.g. Kamailio, Kurento, coTurn, Apache)</li>
<li>all the applications create JSON logs using identical field names</li>
</ol>
<p>I recently made contributions to reSIProcate, GStreamer and Kurento to support the JSON CEE field names.  It would be very easy to replicate in Kamailio.<br>
<a href="https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/847" rel="nofollow">https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/847</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936466476" data-permission-text="Title is private" data-url="https://github.com/Kurento/kurento-media-server/issues/17" data-hovercard-type="pull_request" data-hovercard-url="/Kurento/kurento-media-server/pull/17/hovercard" href="https://github.com/Kurento/kurento-media-server/pull/17">Kurento/kurento-media-server#17</a><br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/resiprocate/resiprocate/commit/d1df9aeb956be79253560fe3628b3f37a4ef94f2/hovercard" href="https://github.com/resiprocate/resiprocate/commit/d1df9aeb956be79253560fe3628b3f37a4ef94f2">resiprocate/resiprocate@<tt>d1df9ae</tt></a></p>
<p>Notice that <code>rsyslog</code> can receive legacy Syslog events from VoIP hardware, Cisco and Polycom phones and it can convert them to JSON CEE and push them into the document store where they will meet the records from Kamailio.  This is another case where it is really useful if all the JSON from different applications is using CEE.</p>
<p>Here are the JSON CEE field names:</p>
<p><a href="https://cee.mitre.org/language/1.0-beta1/core-profile.html" rel="nofollow">https://cee.mitre.org/language/1.0-beta1/core-profile.html</a></p>
<h3>Expected behavior</h3>
<p>Extend the config setting so that people can request CEE on the command line.</p>
<h4>Actual observed behavior</h4>
<h4>Debugging Data</h4>
<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>

<pre><code>(paste your log messages here)
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>(paste your output here)
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>(paste your output here)
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2797">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL4N7BUMDZVAGVDGZLTXBPSRANCNFSM5AEKEWUA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJ77LC6PNQYYXW6GP3TXBPSRA5CNFSM5AEKEWUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OA2UFGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2797",
"url": "https://github.com/kamailio/kamailio/issues/2797",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>