title: Google Container Engine stdout Logs Not Showing Up
body: <p>My stdout logs are not showing up in Google Logs Viewer, or when using <code>kubectl logs &lt;pod&gt;</code>. The cluster has Cloud Logging enabled and fluentd containers are running on each node.</p>
  
  <p>Example Python code:</p>
  
  <pre><code>logger = logging.getLogger()
  logger.setLevel(logging.INFO)
  handler = logging.StreamHandler(sys.stdout)
  handler.setLevel(logging.INFO)
  logger.addHandler(handler)
  logger.info("test log")
  </code></pre>
  
  <p>The "counter-pod" example from <a href="http://kubernetes.io/docs/getting-started-guides/logging/" rel="nofollow">their docs</a> does work on my cluster, so the fluentd containers are picking up stdout and sending it to Logs Viewer.</p>
  
  <p>Any suggestions for things I should try? Thanks in advance.</p>