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?
how to view GCP HealthCheck logs
1.2k views Asked by ankit At
2
There are 2 answers
0
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"
You can go to Cloud Logging and filter on
gcp_health_check
resources, like this