<p>I am using fluent-bit version 1.4.6 and I am trying to collect logs from a tomcat/logs folder, but I receive:</p>
<p><code>[error] [input:tail:tail.0] read error, check permissions</code>
These files inside the logs folder are all &quot;rw-r-----&quot; (640).</p>
<p>I tried to confirm whether it can read it at all by changing the permissions of a file inside the logs folder and it works, but that does not solve the overall problem.</p>
<p>My question is, is this something that should be set on the tomcat level or it can be done via fluent-bit? Can I start that as a different user?</p>
<p>Thanks in advance!</p>

<h2>thanks for all the tips, I tried all of them, and it works, but unfortunately, on our deployments it does not as we have some custom users.</h2>
<p>What was needed to be done is to set the UMASK as env variable with a value of &quot;111&quot; which would change permissions of the log files so they can be picked up by fluent-bit.</p>
