<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 30, 2015 at 9:47 PM, Anne Mulhern <span dir="ltr"><<a href="mailto:amulhern@redhat.com" target="_blank">amulhern@redhat.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Where can the support for structured logging be found in the kernel?<br>
It seems tricky, given the kernel's constraints, to support arbitrary<br>
structured logging.<br></blockquote><div><br></div><div>It was added to kernel/printk.c in v3.5 – printk_emit() accepts an array of key=value metadata, and printk() is a thin wrapper around that.</div><div><br></div><div>At the same time /dev/kmsg was added, to export the attached data and fix various other problems which /proc/kmsg had.</div><div><br></div><div><a href="https://git.kernel.org/linus/7ff9554bb578">https://git.kernel.org/linus/7ff9554bb578</a></div><div><a href="https://git.kernel.org/linus/e11fea92e13f">https://git.kernel.org/linus/e11fea92e13f</a></div><div><a href="https://git.kernel.org/linus/c4e00daaa96d">https://git.kernel.org/linus/c4e00daaa96d</a></div><div><a href="https://git.kernel.org/linus/3b552b92817c">https://git.kernel.org/linus/3b552b92817c</a></div><div><br></div><div>Rsyslog can import the structured data from /dev/kmsg:<br></div><div><br></div><div><a href="http://www.rsyslog.com/doc/v8-stable/configuration/modules/imkmsg.html">http://www.rsyslog.com/doc/v8-stable/configuration/modules/imkmsg.html</a><br></div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>