<p>Logging in K8S can be an issue as pods can get rescheduled. So as soon as a pod is rescheduled we may loose all the logs. I have read that Shipping logs is one of the options available. We ship the logs using a service (filebeat) to a search engine. My question is around this is it better to use log shipping or use PV for logs persistence?</p>

Manish Khandelwal
<p>Implement the official architecture:</p>
<ol>
<li><a href="https://kubernetes.io/docs/concepts/cluster-administration/logging/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/cluster-administration/logging/</a></li>
<li><a href="https://github.com/helm/charts/tree/master/stable/filebeat" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/filebeat</a> or <a href="https://github.com/helm/charts/tree/master/stable/fluent-bit" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/fluent-bit</a></li>
</ol>
<p><a href="https://i.stack.imgur.com/S65z5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S65z5.png" alt="enter image description here" /></a></p>
<p>Yes, it is log shipping.</p>
