how to view GCP HealthCheck logs

1.2k views Asked by At

I created a Health Check in my GCP project for http traffic. I wanted to see the logs in Cloud Logging but I cant see any logs related to the created HealthCheck. I have logging enabled in HealthCheck. Can anyone help me?

2

There are 2 answers

5
guillaume blaquiere On

You can go to Cloud Logging and filter on gcp_health_check resources, like this

enter image description here

0
Ameya On

You can view your health check logs under Logs explorer in the GCP console. Check out this documentation for more details.

To see all logs, you can use the following query:

logName="projects/YOUR_PROJECT_ID/logs/compute.googleapis.com%2Fhealthchecks"