Assigned
Status Update
Comments
vi...@sedexglobal.com <vi...@sedexglobal.com> #2
Hello, just to complement, we are using Akamai CDN and we are trying to get the customer IP on the GCP External Load Balancer via X-Forwarded-For, but it is not possible to get the info in the logs
ob...@google.com <ob...@google.com> #3
Hi Ismail,
In order to troubleshoot the logging agent you can refer to this documentation [1].
If you still have issues with your VM logs, please send some more details about your project/VM-instances and I can take a closer look.
Regarding Vinothans comment, I dont think this is related as he is looking for GKE pods logs and not VMs [2].
(vinothan.selvarajah@sedexglobal.com feel free to open a new thread if this doesnt help)
[1]https://cloud.google.com/logging/docs/agent/troubleshooting
[2]https://cloud.google.com/monitoring/kubernetes-engine/legacy-stackdriver/logging#viewing_logs
In order to troubleshoot the logging agent you can refer to this documentation [1].
If you still have issues with your VM logs, please send some more details about your project/VM-instances and I can take a closer look.
Regarding Vinothans comment, I dont think this is related as he is looking for GKE pods logs and not VMs [2].
(vinothan.selvarajah@sedexglobal.com feel free to open a new thread if this doesnt help)
[1]
[2]
Description
Problem you have encountered:
I have a Flask server running on GCE's container-optimized image. This server prints a log for every request. Normally, I can view the logs my application prints in GCP Stackdriver Logging console with no problem at all. As of a few days ago, I could no longer see any logs from the VM in the Logging console. I have not touched the VM for the last 2 weeks: no code deployment, no restart, nothing of the sort. The server is clearly still running, since it continues to respond to requests as you would expect. To be clear, I can see logs like "Compute Engine reset", but I can see none of the logs generated by my application's code.
What you expected to happen:
I expect to see application logs in the Logging console.
Steps to reproduce:
Already described above.
Other information (workarounds you have tried, documentation consulted, etc):
First, I reset the VM instance using the GCE console. Did not work.
Second, I stopped the VM instance, then started it again. Did not work.
Third, I SSHd into my VM instance, and ran logger "Test logs!". I could still see nothing in the Logging Console.
Fourth, I made sure I had no filters in the logging console.
Fifth, I checked logs for other VM instances. No problems there. Only this one specific VM is facing this issue.
My hunch is that something happened to the logging agent on this VM. But I have no idea how to resolve that :(