<p>I am trying to get the output of my pod logs into Stackdriver, but I am running into an issue where they are not being sent to Stackdriver. </p>

<p>If I look at the GKE cluster details, it is showing this:</p>

<pre><code>Stackdriver Logging - Disabled
Stackdriver Monitoring  - Enabled
</code></pre>

<p>I cannot find any information on how to enable Stackdriver on a running cluster. </p>

<p>There is a running heapster pod, and I have run this command as this wasn't set:</p>

<pre><code>gcloud container clusters update &lt;cluster&gt; --monitoring-service=monitoring.googleapis.com
</code></pre>

<p>That is now showing the correct service, but this doesn't solve the logging issue. Is anyone able to shed any light on how to enable to logging?</p>

<p>Thanks</p>

<p>Currently there is no support for enabling logging in GKE cluster after it's been created. We are aware of the problem and we're going to introduce such possibility.</p>

<p>In the meantime you can try the following workarounds:</p>

<ul>
<li>Create fluentd DaemonSet on your own using <a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml" rel="noreferrer">fluentd-gcp-ds.yaml</a>. You need to change namespace there to avoid interaction with <a href="https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/addon-manager" rel="noreferrer">addon-manager</a>. The disadvantage of this approach is that GKE won't manage/upgrade your fluentd DaemonSet.</li>
<li>Migrate to a new cluster with logging disabled if this works for your.</li>
</ul>

<p>Please let me know if you have more questions. Apologies for the inconvenience.</p>
