<p>Running <code>kubectl logs</code> shows me the stderr/stdout of one Kubernetes container.  </p>

<p>How can I get the aggregated stderr/stdout of a set of pods, preferably those created by a certain replication controller?</p>

Torsten Bronger
<p>You can use labels</p>
<pre><code>kubectl logs -l app=elasticsearch
</code></pre>
<p>And you'd probably want to specify <code>--all-containers --ignore-errors</code> in order to:</p>
<ul>
<li>Include logs from pods with multiple containers</li>
<li>Continue to next pod on fatal error (e.g. logs could not be retrieved)</li>
</ul>
