<p>Circleci and many other ci tools show real time logs during the job running.  It like the <code>tail -f</code> in linux but it also show all the previous logs. </p>

<p>I am trying to sync specific logs from kubernetes to s3 and then move the update to the browse it that possible?</p>

<blockquote>
  <p>I am trying to sync specific logs from kubernetes to s3 and then move the update to the browse it that possible?</p>
</blockquote>

<p>IMHO you would want to have a "tee" mechanism to divert the log streams to <em>each</em> destination, since those two destinations have vastly different access (and retry!) mechanisms. AFAIK kubernetes allows unlimited(?) numbers of <code>kubectl logs -f</code> connections, so you would want one process that connects to the pod and relays those bytes out to the browser, and a separate process that connects and relays the bytes to S3. You <em>could</em> have one process that does both, but that runs the risk of a single bug wiping out <em>both</em> streams, making everyone unhappy.</p>

<p>I used <code>kubectl logs -f</code> as a "shortcut" for this answer, but I am super positive there's an API endpoint for doing that, I just don't remember what it is offhand -- <code>kubectl --v=100 logs -f $pod</code> will show it to you.</p>
