<p>Not sure how to name it, but having a rails app, and using sidekiq; I'd like to be able to view both sidekiq and rails logs when running <code>kubectl logs {podname}</code></p>

<p>Is that even possible ? is there another possibility (like extra commands to logs specific sources) ? Just wondering where to start investigating</p>

<p>You should run your rails app in one container and sidekiq in another container. Both of them can run in the same pod. Assuming they're are indeed in the same pod but different containers then you can get each of their logs with the appropriate:</p>

<pre><code>kubectl logs my-pod -c my-container
</code></pre>

<p>If otherwise you run them each in their own pods, getting each of their logs should be the default setup of just calling <code>kubectl logs my-pod</code> for each of them.</p>

<p>If you want to aggregate logs from multiple sources you should use something like <a href="https://github.com/johanhaleby/kubetail" rel="nofollow noreferrer">kubetail</a>.</p>
