Real-case logging examples using Cloud Logging and Cloud Monitoring
In this section, we will review some real cases of Cloud Logging and Cloud Monitoring implementations to bear in mind when working with GCP in our organization.
Centralization of multiple logs in a GCP project
The examples reviewed in this chapter have shown how to record log events in Cloud Logging from a particular application and project. But in an organization, we are confronted with multiple applications co-existing in multiple projects, and this is when we need to centralize these events to facilitate decision-making and error diagnosis.
One of the options we have for meeting this objective is to use the Cloud Logging bucket sink service, which uses the same storage technology for events registered in Cloud Logging but with the possibility of deriving multiple logs from different projects to a single project. This can facilitate the analysis work of an organization's site reliability engineering...