Events can be defined as things happening in or outside the GCP environment. When they occur, you might want certain actions to be triggered. An example of an event might be a file that's been added to Cloud Storage, a change that was made to your database table, and a new resource that has been provisioned to GCP, to name a few. These events can come from one of the following providers:
- Cloud Storage
- Cloud Pub/Sub
- Stackdriver Logging
- Cloud Firestore
- Firebase Realtime Database, Storage, Authentication
If you create a sink to forward the logs to Pub/Sub, then you can trigger Cloud Functions (for more details, check out Chapter 15, Monitoring Your Infrastructure).