Search code examples
google-cloud-platformstackdrivergoogle-cloud-stackdriver

Can I monitor multiple projects in one place using Google Cloud Platform?


I have multiple projects in GCP and I am trying to read all my projects' logs in one place.

Any suggestions?


Solution

  • Unlike monitoring, Stackdriver logging UI does not provide a multi-project view of logs.

    It is possible to query the logs from multiple projects using the API. See the resourceNames (or projectIds) field https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/list

    It's also possible to export logs from multiple projects to one place: https://cloud.google.com/logging/docs/export/