(Note: much of this was taken from this public document: https://cloud.google.com/logging/docs/export/configure_export)
Events can be setup on a per-project basis by using Google Stackdriver Logging combined with Google Pub/Sub. Stackdriver logging is a service that aggregates and exposes log events from various other Google services and applications. This document describes how to export activity log entries for a Google project to Google Pub/Sub, a messaging service.
- You must have owner permission on the project you are exporting
- You must have enabled the Google Cloud Pub/Sub API for your project. You can enable the API via the following steps:
- Visit the API Library