<p>I am using the following command to check logs in Kubernetes.</p>
<blockquote>
<p>kubectl logs pod_name -n namespace</p>
</blockquote>
<p>It is printing all the logs from the beginning.</p>
<ol>
<li>Is there anyway to tail the logs or check logs between the given window?</li>
<li>Is it possible to rotate docker logs based on size or date?</li>
</ol>

user1578872
<p>Yes, we can extract the log by using the since like below -</p>
<p><code>kubectl logs --since=48h podname &gt; 24Logs.txt</code></p>
<p>Then you can easily check the logs for specific time within last 48 hours.</p>
