<p>I am just trying to find the log location in the pod.</p>
<p>I just logged into the pod as below.</p>
<pre><code>kubectl exec -it POD_NAME bash
</code></pre>
<p>But, the logs are not available under <code>/var/logs</code>. Not sure what is the actual log location and how to change that.</p>

<p>If your application is writing logs to file, then the location of that log file within the container depends on your application. The location of the log file on the host depends on whether you've mounted the log directory on the host.</p>

<hr>

<p>If your application is writing logs to <code>stdout</code>, then your container runtime would capture each line and store it on the host. For Docker, this is stored in the <code>/var/lib/docker/containers</code> directory.</p>

<p>But Kubernetes also makes it easier for you to find the log files on the Kubernetes node, by symlinking the relevant log file to <code>/var/log/pods/&lt;namespace&gt;_&lt;pod_name&gt;_&lt;pod_id&gt;/&lt;container_name&gt;/</code>.</p>
