Hi,
I would like to configure a based log alert for google managed certificates (not classic certificates) provisioned by Certificate Manager which are close to expiry.
I follow this documentation (https://cloud.google.com/certificate-manager/docs/logs-metrics#configure_log_alerts) and tried the suggested alert query “logName = “projects/PROJECT_ID/logs/certificatemanager.googleapis.com%2Fcertificates_expiry” AND jsonPayload.state = “CLOSE_TO_EXPIRY”” in Cloud Logging (Logs Explorer)
I did a test with a certificate and let it expire but I can’t see any logs relative to that (close to expire), I only have logs for listing of the certificate (methodName: “google.cloud.certificatemanager.v1.CertificateManager.ListCertificates”).
I am surprised because as mentionned in the documentation : “Certificate Manager logging is always enabled and only captures a minimal amount of information specifically related to certificate expiration.”
Thank you for you support by advance !