Container Logs Missing in Cloud Logging UI

in flag

I'm in the process of setting up our Kubernetes infrastructure. Our GKE cluster is up and running. I have successfully deployed a test service which is reachable and behaves as it should.

The test service logs a message on startup and every time it receives a request but those messages don't show up in the Cloud Logging UI.

I know it's not the container image because it works just fine when I run it locally. There must be some issue that prevents the container logs from reaching Cloud Logging.

The cluster Cloud Logging option is set to System, Workloads and the node pool service account has the logging.logWriter role.

At this point I'm out of ideas on what the problem could be. I found several older post describing similar problems but those mostly had to do with the image itself or migrating from Legacy Stackdriver which is not the case here.

ls flag

I had the same issue as well. Enabling Cloud Logging to System and Workloads does not seems to get it fixed as well. I opened a GCP case and it magically worked. Not sure if there's something in the background which they did to fix.

user16768564 avatar
in flag
After reading your answer, I also opened a case. The support staff referred me to a [documentation page]( I was able to quickly identify my mistake. I had forgotten to enable the Cloud Logging API...

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.