<p>Currently, under kubernetes1.5.3, kube-apiserver.log and kube-controller-manager.log is generated by adding '1>>/var/log/kube-apiserver.log 2>&amp;1' in /etc/kubernetes/kube-apiserver.yaml file. 
  When I upgrade the kubernetes version to 1.6.3, it not work. There is no log file created under /var/log. How to get the kubernetes log file?
  Thanks, much.</p>

<p>For kubernetes1.6+, try the following options</p>

<h3><code>kube-apiserver</code></h3>

<pre><code>--audit-log-path=/var/log/kubernetes/kube-apiserver.log --logtostderr=false
</code></pre>

<p>and restart <code>kube-apiserver</code>, you can find all logs for <code>kube-apiserver</code> in file <code>/var/log/kubernetes/kube-apiserver.log</code>.</p>

<h3><code>kube-controller-manager</code></h3>

<pre><code>--log-dir=/var/log/kubernetes --logtostderr=false
</code></pre>

<p>then restart <code>kube-controller-manager</code>, you will find:</p>

<ul>
<li><code>ERROR</code> logs in <code>/var/log/kubernetes/kube-controller-manager.ERROR</code>;</li>
<li><code>FATAL</code> logs in <code>/var/log/kubernetes/kube-controller-manager.FATAL</code>;</li>
<li><code>INFO</code> logs in <code>/var/log/kubernetes/kube-controller-manager.INFO</code>;</li>
<li><code>WARNING</code> logs in <code>/var/log/kubernetes/kube-controller-manager.WARNING</code>;</li>
</ul>

<h3><code>kube-scheduler</code></h3>

<pre><code> --log-dir=/var/log/kubernetes --logtostderr=false
</code></pre>

<p>then restart <code>kube-scheduler</code>, you will find:</p>

<ul>
<li><code>ERROR</code> logs in <code>/var/log/kubernetes/kube-scheduler.ERROR</code>;</li>
<li><code>FATAL</code> logs in <code>/var/log/kubernetes/kube-scheduler.FATAL</code>;</li>
<li><code>INFO</code> logs in <code>/var/log/kubernetes/kube-scheduler.INFO</code>;</li>
<li><code>WARNING</code> logs in <code>/var/log/kubernetes/kube-scheduler.WARNING</code>;</li>
</ul>

<h3><code>kubelet</code></h3>

<pre><code>--log-dir=/var/log/kubernetes --logtostderr=false
</code></pre>

<p>then restart <code>kubelet</code>, you will find:</p>

<ul>
<li><code>ERROR</code> logs in <code>/var/log/kubernetes/kubelet.ERROR</code>;</li>
<li><code>FATAL</code> logs in <code>/var/log/kubernetes/kubelet.FATAL</code>;</li>
<li><code>INFO</code> logs in <code>/var/log/kubernetes/kubelet.INFO</code>;</li>
<li><code>WARNING</code> logs in <code>/var/log/kubernetes/kubelet.WARNING</code>;</li>
</ul>

<h3><code>kube-proxy</code></h3>

<pre><code>--log-dir=/var/log/kubernetes --logtostderr=false
</code></pre>

<p>then restart <code>kube-proxy</code>, you will find:</p>

<ul>
<li><code>ERROR</code> logs in <code>/var/log/kubernetes/kube-proxy.ERROR</code>;</li>
<li><code>FATAL</code> logs in <code>/var/log/kubernetes/kube-proxy.FATAL</code>;</li>
<li><code>INFO</code> logs in <code>/var/log/kubernetes/kube-proxy.INFO</code>;</li>
<li><code>WARNING</code> logs in <code>/var/log/kubernetes/kube-proxy.WARNING</code>;</li>
</ul>
