we have deployed a python flask application which logs messages to stdout and to a local file.
the logs pushed to stdout are appearing when we issue “kubectl logs ”
but we are unable to see the logs in GKE logs explorer in container logs and logs of entire cluster.
our configuration:
cluster: autopilot ver(1.27.3-gke.100)
Hello @MohamYa ,
Welcome to Google Cloud Community!
I found the same issue on this link. You can try the same solution posted by Aaron Drenberg.
The logs are definitely going to stdout, they just aren’t showing up when running `kubectl logs
Thanks
Hi Mohamya,
try to check logs with kubectl CLI using “kubectl logs <container_name> -n namespace” and add -p flag if the container has crashed.
1 Like