<div dir="ltr">Hi Markus,<div><br></div><div>AFAIK log aggregation tooling usually doesn't work by reading the logs from files written inside the container. Instead it collects the output of the containers through the container runtime. For that reason you usually want to do the exact opposite of what you are asking for - write the logs only to STDOUT and not to files and let the infrastructure care of it. That is what is currently expected by Strimzi. I think you might be able to change the logging to file in configuration through config map. But Strimzi currently doesn't allow you to mount any volumes for the log files.</div><div><br></div><div>Thanks & Regards</div><div>Jakub</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 22, 2019 at 3:00 PM Schwarz, Markus <<a href="mailto:M.Schwarz@prosoz.de">M.Schwarz@prosoz.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">







<div lang="DE">
<div class="gmail-m_-8163845080883245382WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext">I’d like to have the kafka broker logs included in our log aggregation tooling (Filebeat, Elasticsearch, Kibana) . For that to work I need the broker logs to be written into a directory mounted
 as volume inside the broker container.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext">Now I got two problems:<u></u><u></u></span></p>
<p class="gmail-m_-8163845080883245382MsoListParagraph">
<u></u><span style="font-size:11pt;color:windowtext"><span>-<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span style="font-size:11pt;color:windowtext">How can I tell the broker where to put its logfiles? As I understand the corresponding kafka configuration options are „forbidden“ in strimzi.<u></u><u></u></span></p>
<p class="gmail-m_-8163845080883245382MsoListParagraph">
<u></u><span style="font-size:11pt;color:windowtext"><span>-<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span style="font-size:11pt;color:windowtext">How can I tell the operator to add a volume mount to the broker pods?<u></u><u></u></span></p>
<p class="gmail-m_-8163845080883245382MsoListParagraph">
<u></u><span style="font-size:11pt;color:windowtext"><span>-<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span style="font-size:11pt;color:windowtext">Is there any other way to get the logs into elasticsearch?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext">I’m using strimzi 0.9.0 at the moment, update to 0.10.0 will happen in the next 3-4 weeks.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:windowtext">Markus<u></u><u></u></span></p>
</div>
<p class="gmail-m_-8163845080883245382ImprintUniqueID"></p>
<p></p>
<p> <a href="http://www.prosoz.de" target="_blank"><img width="555" height="264" style="border: 0px solid;" src="cid:16916bf3220881d76961"></a><br>
<font color="#ffffff" size="1" face="Arial">prosoz-herten-footer</font></p>
</div>

_______________________________________________<br>
Strimzi mailing list<br>
<a href="mailto:Strimzi@redhat.com" target="_blank">Strimzi@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/strimzi" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/strimzi</a><br>
</blockquote></div>