<p>I have a pod in a Kubernetes(k8s) which has a Java application running on it in a docker container. This application produces logs. I want to move these log files to another amazon EC2 machine. Both the machines are linux based. How can this be done. Is it possible to do so using simple <code>scp</code> command?</p>

<p>For moving logs from pods to your log store , you can use the following options to do it all the time for you , instead of one time copy:</p>

<ul>
<li>filebeat</li>
<li>fluentd</li>
<li>fluentbit</li>
</ul>

<p><a href="https://github.com/fluent/fluent-bit-kubernetes-logging" rel="nofollow noreferrer">https://github.com/fluent/fluent-bit-kubernetes-logging</a></p>

<p><a href="https://docs.fluentd.org/v0.12/articles/kubernetes-fluentd" rel="nofollow noreferrer">https://docs.fluentd.org/v0.12/articles/kubernetes-fluentd</a></p>
