<p>I currently have a php-fpm container set up in Kubernetes to output error messages, exceptions,... to stderr. This way I can see my PHP errors, when using 'kubectl logs'.</p>
<p>I'm also working with sentry and I was wondering if there was a good way to collect my log output and send it to sentry, so I can use sentry to see my errors as well. I'm not looking to change the code though, so using php and some specific logger to send messages to sentry directly won't work for me.</p>

patrick.barbosa.3979
<p>You can use <a href="https://www.fluentd.org/" rel="nofollow noreferrer"><strong>Fluentd</strong></a> with <a href="https://www.fluentd.org/plugins/all" rel="nofollow noreferrer">an output plugin</a> that sends aggregated errors/exception events to <strong>Sentry</strong> e.g. <a href="https://github.com/y-ken/fluent-plugin-sentry" rel="nofollow noreferrer">this one</a>.</p>
<p><strong>Fluentd</strong> is deployed as a sidecar container in your app <code>Pod</code> so you don't have to change anything in your code.</p>
