<p>I tried this command:</p>

<pre><code>kubectl logs --tail
</code></pre>

<p>I got this error/help output:</p>

<pre><code>Error: flag needs an argument: --tail


Aliases:
logs, log

Examples:
  # Return snapshot logs from pod nginx with only one container
  kubectl logs nginx

  # Return snapshot logs for the pods defined by label app=nginx
  kubectl logs -lapp=nginx

  # Return snapshot of previous terminated ruby container logs from pod web-1
  kubectl logs -p -c ruby web-1

  # Begin streaming the logs of the ruby container in pod web-1
  kubectl logs -f -c ruby web-1

  # Display only the most recent 20 lines of output in pod nginx
  kubectl logs --tail=20 nginx

  # Show all logs from pod nginx written in the last hour
  kubectl logs --since=1h nginx

  # Return snapshot logs from first container of a job named hello
  kubectl logs job/hello

  # Return snapshot logs from container nginx-1 of a deployment named nginx
  kubectl logs deployment/nginx -c nginx-1
</code></pre>

<p>ummm I just want to see all the logs, isn't this a common thing to want to do? How can I tail all the logs for a cluster?</p>

<p><code>kail</code> from the top answer is Linux and macOS only, but <a href="https://github.com/stern/stern" rel="nofollow noreferrer">Stern</a> also works on Windows.</p>
<p>It can do pod matching based on e.g. a regex match for the name, and then can follow the logs.</p>
<p>To follow ALL pods without printing any prior logs from the <code>default</code> namespace you would run e.g.:</p>
<pre class="lang-bash prettyprint-override"><code>stern &quot;.*&quot; --tail 0
</code></pre>
<p>For absolutely everything, incl. internal stuff happening in <code>kube-system</code> namespace:</p>
<pre class="lang-bash prettyprint-override"><code>stern &quot;.*&quot; --all-namespaces --tail 0
</code></pre>
<p>Alternatively you could e.g. follow all <code>login-.*</code> containers and get some context with</p>
<pre class="lang-bash prettyprint-override"><code>stern &quot;login-.*&quot; --tail 25
</code></pre>
