<p>I have the pod and it has 2 containers.
if i give the command &quot;<code>kubectl logs pod_name</code>&quot;
it does not list logs, i need to give container name along with this command.</p>
<p>Is there a way to display both the container logs when we give command &quot;<code>kubectl logs pod_name</code>&quot;?</p>

<p>To display the logs of a particular container</p>
<pre><code>kubectl logs &lt;pod-name&gt; -c &lt;container_name&gt;
</code></pre>
<p>To display all containers logs use below command</p>
<pre><code>kubectl logs &lt;pod-name&gt; --all-containers=true
</code></pre>
