Cako
Cako

Reputation: 426

Google Load Balancer not logging errors

We are trying to troubleshoot the load balancer of our applications and we cannot see why the load balancer is giving 502 errors. When I go to Logging and filter by severity or error code we don't see anything on the logs.

The type is External HTTPS Classic and the configuration of the load balancer is this

Load balancer configuration

I add some aclarations per @John Hanley said:

I am checking the logs in google cloud logging: https://console.cloud.google.com/logs/query

The error is generated in the load balancer as if i check backend logs I don't see the request to have arrived to it. Also, looking at other stack overflow posts of Cloud Load Balancing it gives the same error.

Others can see the errors like the documentation says of statusDetails http failure messages: https://cloud.google.com/load-balancing/docs/https/https-logging-monitoring#gcloud:-classic-mode

But we don't see any of the errors registered, nor the petition with error code 502.

Edit: To mention that we see every OK response in the logging, just the errors and warnings aren't logged.

Upvotes: 0

Views: 474

Answers (1)

Cako
Cako

Reputation: 426

I have finally found out. Someone in the company set in the Log router sink an exclusion to http codes distinct to 200. That's why it wasn't being registered

Upvotes: 2

Related Questions