Application logs in Google Logging
In case of LaaS being unavailable for an extended period of time the logs will be made available in GCP as a temporary measure. After LaaS becomes available these logs will also be ingested by it, so with time in most cases there will be no logs lost from a LaaS point of view.
During this time the logs will be available in Google Logging for staging and production. Use the following query examples to find your application’s logs.
# for all the logs of your application
resource.type = "k8s_container"
labels."k8s-pod/applicationName" = "me-push"
# for the logs of a specific deployment
resource.type = "k8s_container"
labels."k8s-pod/applicationName" = "application-name" #eg.: me-push
resource.labels.container_name="application-name-deployment-name" #eg.: me-push-web
Log based alerts (Elastalerts) are running against the logs in LaaS within the internal datacenter, thus these alerts will NOT be available