<ul>
<li>My service (tomcat/java) is running on a kubernetes cluster (AKS).</li>
<li>I would like to write the log files (tomcat access logs, application logs with logback)  to an AzureFile volume.</li>
<li>I do not want to write the access logs to the stdout, because I do not want to mix the access logs with the application logs.</li>
</ul>
<p><strong>Question</strong></p>
<p>I expect that all logging is done asynchronously, so that writing to the slow AzureFile volume should not affect the performance.
Is this correct?</p>
<p><strong>Update</strong></p>
<p>In the end I want to collect the logfiles so that I can send all logs to ElasticSearch.</p>
<p>Especially I need a way to collect the access logs.</p>

<p>If you want to send your access logs to Elastic Search, you just need to extend the <a href="https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/valves/AbstractAccessLogValve.html" rel="nofollow noreferrer"><code>AbstractAccessLogValve</code></a> and implement the <code>log</code> method.</p>
<p>The <code>AbstractAccessLogValve</code> already contains the logic to format the messages, so you need just to add the logic to send the formatted message.</p>
