<p>Is there any way to get hold of the log file of the pod in Kubernetes cluster?</p>

<p>I know I can fetch logs using "kubectl exec log -f $POD_NAME" command but I want to get access to log file directly.</p>

<p>It depends on the logging driver you're using 
I'm assuming you're using the default json logging driver here, but you can see the node the pod is scheduled on by using <code>kubectl get po -o wide</code></p>

<p>Then, logon to that node and you'll see the docker logs of the container under <code>/var/lib/docker/containers/&lt;long_container_id&gt;/&lt;long_container_id&gt;-json.log</code></p>

<p>You will need to use <code>docker ps</code> and <code>docker inspect</code> to determine the long container id.</p>
